git://git.onelab.eu
/
myslice.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
global helper functions need to have grep-able names, i.e. a little bit longer
[myslice.git]
/
plugins
/
active_filters
/
static
/
js
/
active_filters.js
diff --git
a/plugins/active_filters/static/js/active_filters.js
b/plugins/active_filters/static/js/active_filters.js
index
89ebef2
..
81b1459
100644
(file)
--- a/
plugins/active_filters/static/js/active_filters.js
+++ b/
plugins/active_filters/static/js/active_filters.js
@@
-13,7
+13,7
@@
init: function(options, element) {
this._super(options, element);
init: function(options, element) {
this._super(options, element);
- this.els('closeButton').click(function() {
+ this.el
t
s('closeButton').click(function() {
manifold.raise_event(options.query_uuid, FILTER_REMOVED, filter);
});
manifold.raise_event(options.query_uuid, FILTER_REMOVED, filter);
});
@@
-60,7
+60,7
@@
check_and_hide_clear_button: function()
{
// Count the number of filter _inside_ the current plugin
check_and_hide_clear_button: function()
{
// Count the number of filter _inside_ the current plugin
- var count = this.els('filterButton').length;
+ var count = this.el
t
s('filterButton').length;
if (count == 1) { // Including the template
this.el('clearFilters').hide();
}
if (count == 1) { // Including the template
this.el('clearFilters').hide();
}
@@
-85,7
+85,7
@@
// Add an event on click on the close button, call function removeFilter
var self = this;
// Add an event on click on the close button, call function removeFilter
var self = this;
- this.els('closeButton').last().click(function() {
+ this.el
t
s('closeButton').last().click(function() {
manifold.raise_event(self.options.query_uuid, FILTER_REMOVED, filter);
});
manifold.raise_event(self.options.query_uuid, FILTER_REMOVED, filter);
});