From 49a76e223b6e97b298002be4a174e576c9e8ba86 Mon Sep 17 00:00:00 2001
From: ftimme <ft@falkotimme.com>
Date: Fri, 09 Nov 2012 08:41:31 -0500
Subject: [PATCH] - Hide Options tab in subdomain and alias domain form if redirect_type != proxy. - Several changes in SEO redirects implementation.

---
 interface/web/sites/templates/web_subdomain_edit.htm |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/interface/web/sites/templates/web_subdomain_edit.htm b/interface/web/sites/templates/web_subdomain_edit.htm
index 2264524..a8abb21 100644
--- a/interface/web/sites/templates/web_subdomain_edit.htm
+++ b/interface/web/sites/templates/web_subdomain_edit.htm
@@ -65,6 +65,19 @@
         webId = $(this).val();
         getServerId(webId);
     });
+	
+	if(jQuery('#redirect_type').val() == 'proxy'){
+        jQuery('.tabbox_tabs ul li:last').show();
+    } else {
+        jQuery('.tabbox_tabs ul li:last').hide();
+    }
+    jQuery('#redirect_type').change(function(){
+        if(jQuery(this).val() == 'proxy'){
+            jQuery('.tabbox_tabs ul li:last').show();
+        } else {
+            jQuery('.tabbox_tabs ul li:last').hide();
+        }
+    });
     
     function getServerId(webId){
         jQuery.getJSON('sites/ajax_get_json.php'+ '?' + Math.round(new Date().getTime()), {web_id : webId, type : "getserverid"}, function(data) {

--
Gitblit v1.9.1