From c57e10156e316045e7d6b225e523169af01e4ea6 Mon Sep 17 00:00:00 2001 From: Flat Date: Sat, 2 Jul 2016 20:39:25 +0900 Subject: [PATCH] Correct indentation --- web/templates/admin/add_db.js.html | 38 ++--- web/templates/admin/add_dns.js.html | 62 ++++---- web/templates/admin/add_dns_rec.js.html | 8 +- web/templates/admin/add_firewall.js.html | 12 +- .../admin/add_firewall_banlist.js.html | 12 +- web/templates/admin/add_ip.js.html | 12 +- web/templates/admin/add_mail_acc.js.html | 80 +++++----- web/templates/admin/add_package.js.html | 56 +++---- web/templates/admin/add_user.js.html | 34 ++--- web/templates/admin/add_web.js.html | 80 +++++----- web/templates/admin/edit_db.js.html | 38 ++--- web/templates/admin/edit_firewall.js.html | 12 +- web/templates/admin/edit_ip.js.html | 12 +- web/templates/admin/edit_mail_acc.js.html | 34 ++--- web/templates/admin/edit_package.js.html | 58 ++++---- web/templates/admin/edit_server.js.html | 44 +++--- web/templates/admin/edit_user.js.html | 76 +++++----- web/templates/admin/edit_web.js.html | 74 +++++----- web/templates/footer.html | 138 +++++++++--------- web/templates/user/edit_user.js.html | 76 +++++----- web/templates/user/edit_web.js.html | 74 +++++----- 21 files changed, 515 insertions(+), 515 deletions(-) diff --git a/web/templates/admin/add_db.js.html b/web/templates/admin/add_db.js.html index 764f3796..fd78fbbc 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 c3fefaad..8c80da06 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 55358442..3b482171 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 438d2596..6be2268e 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 438d2596..6be2268e 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 438d2596..6be2268e 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 538b5395..8f55a890 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 b4de83b0..30d518b1 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 4a3e7cb0..3a79e6f8 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 538a5009..891100e1 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 ae45fd7f..c8938bea 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 c55772c7..434b66e6 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 c55772c7..434b66e6 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 5c71cf16..ee6fc04e 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 ced6604c..7b6ab077 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 2582fc5c..d9512ced 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 1b906fc1..1cd82534 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 79e1b235..59eaf330 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 1a2795f8..fa71c154 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'); + } + }); + + -