1
0
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:
Awilum
2012-11-12 23:47:13 +02:00
parent f63e038039
commit 235154680c
2 changed files with 24 additions and 18 deletions

View 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();
});