Skip to content

Commit 4f571b6

Browse files
author
Olivier Giulieri
committed
Animations for showing and hiding filters.
Still need improvements…
1 parent 727f49d commit 4f571b6

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

js/toolbar.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,15 @@ Evol.ViewToolbar = Backbone.View.extend({
453453
return this;
454454
}
455455
}else{
456-
this._filters.$el.show();
456+
this._filters.$el.slideDown();
457+
}
458+
return this;
459+
},
460+
461+
hideFilter: function(){
462+
if(this._filters){
463+
this._filters.$el.fadeOut(300);
464+
this._filterOn=false;
457465
}
458466
return this;
459467
},
@@ -469,14 +477,6 @@ Evol.ViewToolbar = Backbone.View.extend({
469477
}
470478
},
471479

472-
hideFilter: function(){
473-
if(this._filters){
474-
this._filters.$el.hide();
475-
this._filterOn=false;
476-
}
477-
return this;
478-
},
479-
480480
toggleFilter: function(){
481481
this._filtersOn=!this._filtersOn;
482482
return this._filtersOn?this.showFilter(true):this.hideFilter();

0 commit comments

Comments
 (0)