From d18c666b76f972cffc76e56531cd1a35844d9031 Mon Sep 17 00:00:00 2001
From: mcramer <m.cramer@pixcept.de>
Date: Fri, 19 Oct 2012 12:56:30 -0400
Subject: [PATCH] Fixed: change triggers were missing (copied from domains to vhost subdomains)

---
 interface/web/sites/templates/web_vhost_subdomain_edit.htm |    5 ++---
 interface/web/sites/templates/web_domain_edit.htm          |    2 +-
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/interface/web/sites/templates/web_domain_edit.htm b/interface/web/sites/templates/web_domain_edit.htm
index 7d519d6..fe8e316 100644
--- a/interface/web/sites/templates/web_domain_edit.htm
+++ b/interface/web/sites/templates/web_domain_edit.htm
@@ -245,4 +245,4 @@
         });
     </tmpl_if>
 			
-</script>
+</script>
\ No newline at end of file
diff --git a/interface/web/sites/templates/web_vhost_subdomain_edit.htm b/interface/web/sites/templates/web_vhost_subdomain_edit.htm
index ce89c84..60d887e 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,7 +200,7 @@
                 }
                 options += '<option value="'+key+'"'+phpfastcgiselected+'>'+val+'</option>';
             });
-            $('#fastcgi_php_version').html(options);
+            $('#fastcgi_php_version').html(options).change();
         });
     }
     

--
Gitblit v1.9.1