Example #1
0
 setSortField: function () {
   if (this.model.isSortable()) {
     this.model.makeSortField();
     Backbone.router.trigger('dashboard:search');
     this.model.collection.save();
   }
 }
Example #2
0
 applyFilters: function () {
   // initiate search by triggering 'search' event
   Backbone.router.trigger('dashboard:search');
   this.collection.save();
   this.$('.modal').modal('hide');
 },
Example #3
0
 showGroupBy: function () {
   Backbone.router.showGroupBy();
   // Backbone.router.navigate('groupby', {trigger: true});
 }
Example #4
0
 showFilter: function () {
   Backbone.router.showFilters();
 },
Example #5
0
 selectGroupBy: function () {
   this.model.makeGroupField();
   Backbone.router.trigger('dashboard:search');
 },
Example #6
0
 showNotification: function(text, type) {
   Backbone.router.trigger('dashboard:notify', text, type);
 }