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_domain_edit.htm | 15 +++++---------- 1 files changed, 5 insertions(+), 10 deletions(-) diff --git a/interface/web/sites/templates/web_domain_edit.htm b/interface/web/sites/templates/web_domain_edit.htm index edf1836..31c96cc 100644 --- a/interface/web/sites/templates/web_domain_edit.htm +++ b/interface/web/sites/templates/web_domain_edit.htm @@ -146,7 +146,7 @@ <div class="buttonHolder buttons"> <button id="dom-edit-submit" class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}"><span>{tmpl_var name='btn_save_txt'}</span></button> - <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('sites/web_domain_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onclick="loadContent('sites/web_domain_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> </div> </div> @@ -193,7 +193,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(); @@ -201,12 +200,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(); }); } @@ -227,17 +226,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_domain_edit.php'); }); <tmpl_else> @@ -246,4 +241,4 @@ }); </tmpl_if> -</script> +</script> \ No newline at end of file -- Gitblit v1.9.1