From d9bcf68e395d6156645a7974b1a992aa6e6c00aa Mon Sep 17 00:00:00 2001 From: Marius Cramer <m.cramer@pixcept.de> Date: Mon, 14 Oct 2013 08:57:25 -0400 Subject: [PATCH] Added missing empty directories from svn import --- interface/web/sites/templates/web_domain_edit.htm | 29 +++++++++++++++++++++++------ 1 files changed, 23 insertions(+), 6 deletions(-) diff --git a/interface/web/sites/templates/web_domain_edit.htm b/interface/web/sites/templates/web_domain_edit.htm index c415066..d12c3a3 100644 --- a/interface/web/sites/templates/web_domain_edit.htm +++ b/interface/web/sites/templates/web_domain_edit.htm @@ -1,6 +1,15 @@ <h2><tmpl_var name="list_head_txt"></h2> <p><tmpl_var name="list_desc_txt"></p> +<tmpl_if name="config_error_msg"> +<div style="background: #ffdfdf; border: 1px solid #df7d7d; border-width: 1px 0; margin: 1.5em 0 1.5em 0; padding: 7px;"> + <p style="font-face:bold">{tmpl_var name='configuration_error_txt'}</p> + <div> + <div style="float:left;width:150px;">{tmpl_var name='config_error_tstamp'} : </div><div style="padding-left:150px;">{tmpl_var name='config_error_msg'}</div> + </div> +</div> +</tmpl_if> + <div class="panel panel_web_domain"> <div class="pnl_formsarea"> @@ -45,7 +54,7 @@ </div> <div class="ctrlHolder"> <label for="ipv6_address">{tmpl_var name='ipv6_address_txt'}</label> - <select name="ipv6_address" id="ipv6_address" class="selectInput formLengthIPv4"> + <select name="ipv6_address" id="ipv6_address" class="selectInput formLengthIPv6"> {tmpl_var name='ipv6_address'} </select> </div> @@ -172,6 +181,7 @@ jQuery('#client_group_id').change(function(){ clientGroupId = $(this).val(); reloadWebIP(); + reloadFastcgiPHPVersions(); }); if(jQuery('#php').val() == 'fast-cgi' || jQuery('#php').val() == 'php-fpm'){ @@ -195,11 +205,13 @@ if(data.servertype == "nginx"){ var selected = jQuery('#php').val(); jQuery('.apache').hide(); + if(selected != "no" && selected != "php-fpm") { + jQuery('#php option[value="php-fpm"]').attr('selected', 'selected').val('php-fpm'); + } jQuery('#php option[value="fast-cgi"]').hide(); jQuery('#php option[value="cgi"]').hide(); jQuery('#php option[value="mod"]').hide(); jQuery('#php option[value="suphp"]').hide(); - if(selected != "no" && selected != "php-fpm") jQuery('#php option[value="php-fpm"]').attr('selected', 'selected'); } else { jQuery('.apache').show(); jQuery('#php option[value="fast-cgi"]').show(); @@ -207,8 +219,13 @@ jQuery('#php option[value="mod"]').show(); jQuery('#php option[value="suphp"]').show(); } - if(noFormChange) resetFormChanged(); - else jQuery('#php').change(); + if(noFormChange) { + resetFormChanged(); + jQuery('#php').addClass('no-page-form-change').change(); + jQuery('#php').removeClass('no-page-form-change'); + } else { + jQuery('#php').change(); + } }); } @@ -218,7 +235,7 @@ } function reloadFastcgiPHPVersions(noFormChange) { - jQuery.getJSON('sites/ajax_get_json.php'+ '?' + Math.round(new Date().getTime()), {server_id : serverId, php_type : jQuery('#php').val(), type : "getphpfastcgi"}, function(data) { + jQuery.getJSON('sites/ajax_get_json.php'+ '?' + Math.round(new Date().getTime()), {server_id : serverId, php_type : jQuery('#php').val(), type : "getphpfastcgi", client_group_id : clientGroupId}, function(data) { var options = '<option value="">Default</option>'; var phpfastcgiselected = ''; $.each(data, function(key, val) { @@ -235,7 +252,7 @@ } <tmpl_if name="readonly_tab"> - jQuery('div.panel_web_domain').find('fieldset').find('input,select,button').click(function(e) { e.preventDefault(); }).focus(function() { $(this).blur(); }); + jQuery('div.panel_web_domain').find('fieldset').find('input,select,button').bind('click mousedown', function(e) { e.preventDefault(); }).focus(function() { $(this).blur(); }); jQuery('#dom-edit-submit').click(function() { submitForm('pageForm','sites/web_domain_edit.php'); }); -- Gitblit v1.9.1