tbrehm
2012-01-23 a925e32aa411797711f7a588c39b1a09a03276b6
Fixed: FS#1991 - Redirect option R,L=301 not visible when editing a aliasdomain again.
3 files modified
11 ■■■■ changed files
interface/web/sites/templates/web_aliasdomain_edit.htm 4 ●●● patch | view | raw | blame | history
interface/web/sites/templates/web_domain_redirect.htm 3 ●●●● patch | view | raw | blame | history
interface/web/sites/templates/web_subdomain_edit.htm 4 ●●● patch | view | raw | blame | history
interface/web/sites/templates/web_aliasdomain_edit.htm
@@ -78,6 +78,7 @@
                    jQuery('#redirect_type option[value="R"]').hide();
                    jQuery('#redirect_type option[value="L"]').hide();
                    jQuery('#redirect_type option[value="R,L"]').hide();
                    jQuery('#redirect_type option[value="R=301,L"]').hide();
                    
                    jQuery('#redirect_type option[value="last"]').show();
                    jQuery('#redirect_type option[value="break"]').show();
@@ -94,8 +95,9 @@
                    jQuery('#redirect_type option[value="R"]').show();
                    jQuery('#redirect_type option[value="L"]').show();
                    jQuery('#redirect_type option[value="R,L"]').show();
                    jQuery('#redirect_type option[value="R=301,L"]').show();
                    
                    if(selected != "no" && selected != "" && selected != "R"  && selected != "L"  && selected != "R,L") jQuery('#redirect_type option[value="no"]').attr('selected', 'selected');
                    if(selected != "no" && selected != "" && selected != "R"  && selected != "L"  && selected != "R,L" && selected != "R=301,L") jQuery('#redirect_type option[value="no"]').attr('selected', 'selected');
                }
            });
        }
interface/web/sites/templates/web_domain_redirect.htm
@@ -51,13 +51,14 @@
                    jQuery('#redirect_type option[value="R"]').hide();
                    jQuery('#redirect_type option[value="L"]').hide();
                    jQuery('#redirect_type option[value="R,L"]').hide();
                    jQuery('#redirect_type option[value="R=301,L"]').hide();
                    if(selected != "no" && selected != "" && selected != "last"  && selected != "break"  && selected != "redirect"  && selected != "permanent") jQuery('#redirect_type option[value="no"]').attr('selected', 'selected');
                } else {
                    jQuery('#redirect_type option[value="last"]').hide();
                    jQuery('#redirect_type option[value="break"]').hide();
                    jQuery('#redirect_type option[value="redirect"]').hide();
                    jQuery('#redirect_type option[value="permanent"]').hide();
                    if(selected != "no" && selected != "" && selected != "R"  && selected != "L"  && selected != "R,L") jQuery('#redirect_type option[value="no"]').attr('selected', 'selected');
                    if(selected != "no" && selected != "" && selected != "R"  && selected != "L"  && selected != "R,L" && selected != "R=301,L") jQuery('#redirect_type option[value="no"]').attr('selected', 'selected');
                }
            });
        }
interface/web/sites/templates/web_subdomain_edit.htm
@@ -65,6 +65,7 @@
                    jQuery('#redirect_type option[value="R"]').hide();
                    jQuery('#redirect_type option[value="L"]').hide();
                    jQuery('#redirect_type option[value="R,L"]').hide();
                    jQuery('#redirect_type option[value="R=301,L"]').hide();
                    
                    jQuery('#redirect_type option[value="last"]').show();
                    jQuery('#redirect_type option[value="break"]').show();
@@ -81,8 +82,9 @@
                    jQuery('#redirect_type option[value="R"]').show();
                    jQuery('#redirect_type option[value="L"]').show();
                    jQuery('#redirect_type option[value="R,L"]').show();
                    jQuery('#redirect_type option[value="R=301,L"]').show();
                    
                    if(selected != "no" && selected != "" && selected != "R"  && selected != "L"  && selected != "R,L") jQuery('#redirect_type option[value="no"]').attr('selected', 'selected');
                    if(selected != "no" && selected != "" && selected != "R"  && selected != "L"  && selected != "R,L" && selected != "R=301,L") jQuery('#redirect_type option[value="no"]').attr('selected', 'selected');
                }
            });
        }