summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
Diffstat (limited to 'extensions')
-rw-r--r--extensions/BugModal/web/bug_modal.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/extensions/BugModal/web/bug_modal.js b/extensions/BugModal/web/bug_modal.js
index 1a7f7ea81..462e7cff6 100644
--- a/extensions/BugModal/web/bug_modal.js
+++ b/extensions/BugModal/web/bug_modal.js
@@ -952,9 +952,20 @@ $(function() {
});
// update groups
+ var dirtyGroups = [];
+ $('#module-security').find('input[name=groups]').each(function() {
+ var that = $(this);
+ var defaultChecked = !!that.attr('checked');
+ if (defaultChecked !== that.is(':checked')) {
+ dirtyGroups.push({ name: that.val(), value: that.is(':checked') });
+ }
+ });
$('#module-security .module-content')
.html(data.groups)
.addClass('attention');
+ $.each(dirtyGroups, function() {
+ $('#module-security').find('input[value=' + this.name + ']').prop('checked', this.value);
+ });
},
function() {
$('#product-throbber').hide();