We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7dec0f2 + 9395370 commit 227f7adCopy full SHA for 227f7ad
js/base.js
@@ -22,7 +22,15 @@ $(document).ready(function() {
22
}, 1000);
23
}).on("click", ".js-refresh-info", function(event) {
24
event.preventDefault();
25
- var item = event.target.id.split("-").splice(-1)[0];
+ var target = event.target;
26
+ var item = target.id.split("-").splice(-1)[0];
27
+
28
+ // if the refresh icon is click (where in a <span>) target will not have an id, so grab its parent instead
29
+ if(target.id == "") {
30
+ var parent = $(target).parent()[0];
31
+ item = parent.id.split("-").splice(-1)[0];
32
+ }
33
34
dashboard.fnMap[item]();
35
});
36
0 commit comments