From aa78fde6a92f66b84d626e114d8b54a5fb6ece0c Mon Sep 17 00:00:00 2001 From: ftimme <ft@falkotimme.com> Date: Wed, 14 Nov 2012 07:19:43 -0500 Subject: [PATCH] - Added function for IPv6 prefixes in multiserver mirror setups to nginx plugin. --- interface/web/sites/templates/web_vhost_subdomain_edit.htm | 11 +++-------- 1 files changed, 3 insertions(+), 8 deletions(-) diff --git a/interface/web/sites/templates/web_vhost_subdomain_edit.htm b/interface/web/sites/templates/web_vhost_subdomain_edit.htm index ce89c84..5212b5d 100644 --- a/interface/web/sites/templates/web_vhost_subdomain_edit.htm +++ b/interface/web/sites/templates/web_vhost_subdomain_edit.htm @@ -167,7 +167,6 @@ if(data.servertype == "nginx"){ var selected = jQuery('#php').val(); jQuery('.apache').hide(); - jQuery('.apache').hide(); jQuery('#php option[value="fast-cgi"]').hide(); jQuery('#php option[value="cgi"]').hide(); jQuery('#php option[value="mod"]').hide(); @@ -175,12 +174,12 @@ if(selected != "no" && selected != "php-fpm") jQuery('#php option[value="php-fpm"]').attr('selected', 'selected'); } else { jQuery('.apache').show(); - jQuery('.apache').show(); jQuery('#php option[value="fast-cgi"]').show(); jQuery('#php option[value="cgi"]').show(); jQuery('#php option[value="mod"]').show(); jQuery('#php option[value="suphp"]').show(); } + jQuery('#php').change(); }); } @@ -201,17 +200,13 @@ } options += '<option value="'+key+'"'+phpfastcgiselected+'>'+val+'</option>'; }); - $('#fastcgi_php_version').html(options); + $('#fastcgi_php_version').html(options).change(); }); } <tmpl_if name="readonly_tab"> - jQuery('div.panel_web_domain').find('fieldset').find('input,select,button').attr('disabled', 'disabled'); - jQuery('div.tabbox_tabs').find('a').click(function() { - jQuery('div.panel_web_domain').find('fieldset').find('input,select,button').removeAttr('disabled'); - }); + jQuery('div.panel_web_domain').find('fieldset').find('input,select,button').click(function(e) { e.preventDefault(); }).focus(function() { $(this).blur(); }); jQuery('#dom-edit-submit').click(function() { - jQuery('div.panel_web_domain').find('fieldset').find('input,select,button').removeAttr('disabled'); submitForm('pageForm','sites/web_vhost_subdomain_edit.php'); }); <tmpl_else> -- Gitblit v1.9.1