From: Frédéric Buclin Date: Mon, 25 Oct 2010 17:02:45 +0000 (+0200) Subject: Bug 451759: Hide "Add to footer" checkboxes when not sharing a saved searches X-Git-Tag: bugzilla-4.0rc1~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0afb75b195ffec4d6fdb1fe7ccd5e87d57a734ed;p=thirdparty%2Fbugzilla.git Bug 451759: Hide "Add to footer" checkboxes when not sharing a saved searches r=timello a=LpSolit --- diff --git a/template/en/default/account/prefs/saved-searches.html.tmpl b/template/en/default/account/prefs/saved-searches.html.tmpl index f1286134bc..6d87ade76e 100644 --- a/template/en/default/account/prefs/saved-searches.html.tmpl +++ b/template/en/default/account/prefs/saved-searches.html.tmpl @@ -31,9 +31,9 @@ var checkbox = document.getElementById(group.name.replace(/share_(\d+)/, "force_$1")); if (bz_isValueInArray(bless_groups, group.value)) { - checkbox.disabled = false; + YAHOO.util.Dom.removeClass(checkbox.parentNode, "bz_default_hidden"); } else { - checkbox.disabled = true; + YAHOO.util.Dom.addClass(checkbox.parentNode, "bz_default_hidden"); checkbox.checked = false; } } //--> @@ -132,12 +132,12 @@ [% END %] [% IF user.can_bless %] - - + + + + [% END %] [% IF q.shared_with_users %] (shared with [% q.shared_with_users FILTER html %]