mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-08-04 20:27:40 +02:00
Users Plugin: general js refactoring
This commit is contained in:
20
plugins/box/users/js/users.js
Normal file
20
plugins/box/users/js/users.js
Normal file
@@ -0,0 +1,20 @@
|
||||
if (typeof $.monstra == 'undefined') $.monstra = {};
|
||||
|
||||
$.monstra.users = {
|
||||
|
||||
init: function() {
|
||||
this.usersFrontendRegistration();
|
||||
},
|
||||
|
||||
usersFrontendRegistration: function() {
|
||||
$("[name=users_frontend_registration]").click(function() {
|
||||
$("[name=users_frontend]").submit();
|
||||
});
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
|
||||
$(document).ready(function(){
|
||||
$.monstra.users.init();
|
||||
});
|
Reference in New Issue
Block a user