Commit 549d83c7 authored by Frédéric Buclin's avatar Frédéric Buclin

Bug 451759: Hide "Add to footer" checkboxes when not sharing a saved searches

r=pyrzak a=LpSolit
parent 3d2c0c7c
...@@ -31,9 +31,9 @@ ...@@ -31,9 +31,9 @@
var checkbox = document.getElementById(group.name.replace(/share_(\d+)/, "force_$1")); var checkbox = document.getElementById(group.name.replace(/share_(\d+)/, "force_$1"));
if (bz_isValueInArray(bless_groups, group.value)) { if (bz_isValueInArray(bless_groups, group.value)) {
checkbox.disabled = false; YAHOO.util.Dom.removeClass(checkbox.parentNode, "bz_default_hidden");
} else { } else {
checkbox.disabled = true; YAHOO.util.Dom.addClass(checkbox.parentNode, "bz_default_hidden");
checkbox.checked = false; checkbox.checked = false;
} }
} //--> } //-->
...@@ -132,12 +132,12 @@ ...@@ -132,12 +132,12 @@
[% END %] [% END %]
</select> </select>
[% IF user.can_bless %] [% IF user.can_bless %]
<input type="checkbox" id="force_[% q.id FILTER html %]" <span [% IF !bless_group_ids.grep("^$q.shared_with_group.id\$").0
name="force_[% q.id FILTER html %]" value="1" %]class="bz_default_hidden"[% END %]>
[% " disabled" <input type="checkbox" id="force_[% q.id FILTER html %]"
IF !bless_group_ids.grep("^$q.shared_with_group.id\$").0 name="force_[% q.id FILTER html %]" value="1">
%]> <label for="force_[% q.id FILTER html %]">Add to footer</label>
<label for="force_[% q.id FILTER html %]">Add to footer</label> </span>
[% END %] [% END %]
[% IF q.shared_with_users %] [% IF q.shared_with_users %]
(shared with [% q.shared_with_users FILTER html %] (shared with [% q.shared_with_users FILTER html %]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment