aboutsummaryrefslogtreecommitdiff
path: root/src/js/fiveui/injected/ui.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/fiveui/injected/ui.js')
-rw-r--r--src/js/fiveui/injected/ui.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/js/fiveui/injected/ui.js b/src/js/fiveui/injected/ui.js
index 03a1899..e02d83d 100644
--- a/src/js/fiveui/injected/ui.js
+++ b/src/js/fiveui/injected/ui.js
@@ -361,6 +361,8 @@
this.$el.one('click', _.bind(this.open, this));
this.$body.slideUp(100);
+
+ core.maskProblem(this.problem);
},
open:function() {
@@ -369,6 +371,8 @@
this.$el.one('click', _.bind(this.close, this));
this.$body.slideDown(100);
+
+ core.highlightProblem(this.problem);
},
});
@@ -418,7 +422,7 @@
} else {
// add the rule to the list of highlighted elements, and change its style
// to look obvious.
- var elt = core.query('.' + prob.hash);
+ var elt = fiveui.query('.' + prob.hash);
var oldStyle = elt.attr('style');
core.maskRules(function() {
@@ -441,7 +445,7 @@
obj.highlighted = obj.highlighted - 1;
if(obj.highlighted == 0) {
- var elt = core.query('.' + prob.hash);
+ var elt = fiveui.query('.' + prob.hash);
// remove the fiveui style
core.maskRules(function() {