| | |
| | | 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(); |
| | |
| | | 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(); |
| | | }); |
| | | } |
| | | |
| | |
| | | } |
| | | 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> |