diff --git a/web/templates/admin/add_db.js.html b/web/templates/admin/add_db.js.html index 764f37967..fd78fbbcc 100644 --- a/web/templates/admin/add_db.js.html +++ b/web/templates/admin/add_db.js.html @@ -1,21 +1,21 @@ - - + GLOBAL.DB_USER_PREFIX = ; + GLOBAL.DB_DBNAME_PREFIX = ; + + diff --git a/web/templates/admin/add_dns.js.html b/web/templates/admin/add_dns.js.html index c3fefaadd..8c80da064 100644 --- a/web/templates/admin/add_dns.js.html +++ b/web/templates/admin/add_dns.js.html @@ -1,35 +1,35 @@ - + }); + diff --git a/web/templates/admin/add_dns_rec.js.html b/web/templates/admin/add_dns_rec.js.html index 55358442b..3b482171a 100644 --- a/web/templates/admin/add_dns_rec.js.html +++ b/web/templates/admin/add_dns_rec.js.html @@ -1,4 +1,4 @@ - - + + diff --git a/web/templates/admin/add_firewall.js.html b/web/templates/admin/add_firewall.js.html index 438d2596f..6be2268ea 100644 --- a/web/templates/admin/add_firewall.js.html +++ b/web/templates/admin/add_firewall.js.html @@ -1,6 +1,6 @@ - + diff --git a/web/templates/admin/add_firewall_banlist.js.html b/web/templates/admin/add_firewall_banlist.js.html index 438d2596f..6be2268ea 100644 --- a/web/templates/admin/add_firewall_banlist.js.html +++ b/web/templates/admin/add_firewall_banlist.js.html @@ -1,6 +1,6 @@ - + diff --git a/web/templates/admin/add_ip.js.html b/web/templates/admin/add_ip.js.html index 438d2596f..6be2268ea 100644 --- a/web/templates/admin/add_ip.js.html +++ b/web/templates/admin/add_ip.js.html @@ -1,6 +1,6 @@ - + diff --git a/web/templates/admin/add_mail_acc.js.html b/web/templates/admin/add_mail_acc.js.html index 538b53951..8f55a8900 100644 --- a/web/templates/admin/add_mail_acc.js.html +++ b/web/templates/admin/add_mail_acc.js.html @@ -1,46 +1,46 @@ - - + $('.toggle-psw-visibility-icon').click(function(){ + if($('input[name=v_password]').attr('type') == 'text') + $('#v_password').text($('input[name=v_password]').val()); + else + $('#v_password').text(Array($('input[name=v_password]').val().length+1).join('*')); + }); + }); + + diff --git a/web/templates/admin/add_package.js.html b/web/templates/admin/add_package.js.html index b4de83b00..30d518b1d 100644 --- a/web/templates/admin/add_package.js.html +++ b/web/templates/admin/add_package.js.html @@ -1,30 +1,30 @@ - - + $('input[name^=v_ns]').each(function(i, ns){ + i < 2 ? $(ns).parent().find('span').hide() : $(ns).parent().find('span').show(); + }); + }); + + diff --git a/web/templates/admin/add_user.js.html b/web/templates/admin/add_user.js.html index 4a3e7cb02..3a79e6f88 100644 --- a/web/templates/admin/add_user.js.html +++ b/web/templates/admin/add_user.js.html @@ -1,18 +1,18 @@ - + function randomString() { + var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz'; + var string_length = 10; + var randomstring = ''; + for (var i = 0; i < string_length; i++) { + var rnum = Math.floor(Math.random() * chars.length); + randomstring += chars.substr(rnum, 1); + } + document.v_add_user.v_password.value = randomstring; + } + diff --git a/web/templates/admin/add_web.js.html b/web/templates/admin/add_web.js.html index 538a50092..891100e1c 100644 --- a/web/templates/admin/add_web.js.html +++ b/web/templates/admin/add_web.js.html @@ -1,45 +1,45 @@ - - + GLOBAL.FTP_USER_PREFIX = ; + GLOBAL.FTP_USER_PREPATH = ; + + diff --git a/web/templates/admin/edit_db.js.html b/web/templates/admin/edit_db.js.html index ae45fd7fe..c8938bea1 100644 --- a/web/templates/admin/edit_db.js.html +++ b/web/templates/admin/edit_db.js.html @@ -1,21 +1,21 @@ - - + GLOBAL.DB_USER_PREFIX = ; + GLOBAL.DB_DBNAME_PREFIX = ; + + diff --git a/web/templates/admin/edit_firewall.js.html b/web/templates/admin/edit_firewall.js.html index c55772c7e..434b66e68 100644 --- a/web/templates/admin/edit_firewall.js.html +++ b/web/templates/admin/edit_firewall.js.html @@ -1,6 +1,6 @@ - + diff --git a/web/templates/admin/edit_ip.js.html b/web/templates/admin/edit_ip.js.html index c55772c7e..434b66e68 100644 --- a/web/templates/admin/edit_ip.js.html +++ b/web/templates/admin/edit_ip.js.html @@ -1,6 +1,6 @@ - + diff --git a/web/templates/admin/edit_mail_acc.js.html b/web/templates/admin/edit_mail_acc.js.html index 5c71cf16b..ee6fc04ea 100644 --- a/web/templates/admin/edit_mail_acc.js.html +++ b/web/templates/admin/edit_mail_acc.js.html @@ -1,18 +1,18 @@ - - + function randomString() { + var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz'; + var string_length = 10; + var randomstring = ''; + for (var i = 0; i < string_length; i++) { + var rnum = Math.floor(Math.random() * chars.length); + randomstring += chars.substr(rnum, 1); + } + document.v_edit_mail_acc.v_password.value = randomstring; + } + + diff --git a/web/templates/admin/edit_package.js.html b/web/templates/admin/edit_package.js.html index ced6604c3..7b6ab0779 100644 --- a/web/templates/admin/edit_package.js.html +++ b/web/templates/admin/edit_package.js.html @@ -1,31 +1,31 @@ - - + $('.add-ns').show(); + }); + + $('input[name^=v_ns]').each(function(i, ns){ + i < 2 ? $(ns).parent().find('span').hide() : $(ns).parent().find('span').show(); + }); + + }); + + diff --git a/web/templates/admin/edit_server.js.html b/web/templates/admin/edit_server.js.html index 2582fc5c7..d9512cedc 100644 --- a/web/templates/admin/edit_server.js.html +++ b/web/templates/admin/edit_server.js.html @@ -1,24 +1,24 @@ - + $('select[name=v_sftp]').change(function(){ + if($(this).val() == 'yes'){ + $('.sftp.description').show(); + } else { + $('.sftp.description').hide(); + } + }); + }); + diff --git a/web/templates/admin/edit_user.js.html b/web/templates/admin/edit_user.js.html index 1b906fc13..1cd825347 100644 --- a/web/templates/admin/edit_user.js.html +++ b/web/templates/admin/edit_user.js.html @@ -1,41 +1,41 @@ - + $('.add-ns').show(); + }); + + $('input[name^=v_ns]').each(function(i, ns){ + i < 2 ? $(ns).parent().find('span').hide() : $(ns).parent().find('span').show(); + }); + + }); + diff --git a/web/templates/admin/edit_web.js.html b/web/templates/admin/edit_web.js.html index 79e1b235d..59eaf3303 100644 --- a/web/templates/admin/edit_web.js.html +++ b/web/templates/admin/edit_web.js.html @@ -1,42 +1,42 @@ - - + GLOBAL.FTP_USER_PREFIX = ; + + diff --git a/web/templates/footer.html b/web/templates/footer.html index 1a2795f8d..fa71c1540 100644 --- a/web/templates/footer.html +++ b/web/templates/footer.html @@ -1,84 +1,84 @@ - - - - - - - - - - + + + + + + + + + + -
-
-

-
- -
+ }, + create: function() { + $(this) + .closest('.ui-dialog') + .find('.ui-button:first') + .addClass('submit'); + } + }); + + -