summaryrefslogtreecommitdiffstats
path: root/template/en/default
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2010-10-25 19:01:07 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2010-10-25 19:01:07 +0200
commit549d83c76a37ae19795e8fca98a2cbe553ed5c60 (patch)
treeb7c23dd494773c7383db1640285ed86365c2a09a /template/en/default
parent3d2c0c7c3db756b1877ac7e0b322bb993f610d9a (diff)
downloadbugzilla-549d83c76a37ae19795e8fca98a2cbe553ed5c60.tar.gz
bugzilla-549d83c76a37ae19795e8fca98a2cbe553ed5c60.tar.xz
Bug 451759: Hide "Add to footer" checkboxes when not sharing a saved searches
r=pyrzak a=LpSolit
Diffstat (limited to 'template/en/default')
-rw-r--r--template/en/default/account/prefs/saved-searches.html.tmpl16
1 files changed, 8 insertions, 8 deletions
diff --git a/template/en/default/account/prefs/saved-searches.html.tmpl b/template/en/default/account/prefs/saved-searches.html.tmpl
index 3cbc05abe..1b78592ca 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 %]
</select>
[% IF user.can_bless %]
- <input type="checkbox" id="force_[% q.id FILTER html %]"
- name="force_[% q.id FILTER html %]" value="1"
- [% " disabled"
- IF !bless_group_ids.grep("^$q.shared_with_group.id\$").0
- %]>
- <label for="force_[% q.id FILTER html %]">Add to footer</label>
+ <span [% IF !bless_group_ids.grep("^$q.shared_with_group.id\$").0
+ %]class="bz_default_hidden"[% END %]>
+ <input type="checkbox" id="force_[% q.id FILTER html %]"
+ name="force_[% q.id FILTER html %]" value="1">
+ <label for="force_[% q.id FILTER html %]">Add to footer</label>
+ </span>
[% END %]
[% IF q.shared_with_users %]
(shared with [% q.shared_with_users FILTER html %]