diff --git a/dist/angular-footable.js b/dist/angular-footable.js index 9238e2f..08ec352 100755 --- a/dist/angular-footable.js +++ b/dist/angular-footable.js @@ -56,7 +56,7 @@ angular bindEventHandler(tableObj, scope, attrs); scope.$watch(function() {return attrs.loadWhen; }, function(){ $timeout(function(){ - element.trigger('footable_redraw'); + element.triggerHandler('footable_redraw'); }); }); },1000); diff --git a/dist/angular-footable.min.js b/dist/angular-footable.min.js index efd576a..3592305 100755 --- a/dist/angular-footable.min.js +++ b/dist/angular-footable.min.js @@ -1 +1 @@ -"use strict";angular.module("ui.footable",[]).directive("footable",["$timeout",function(n){var e={beforeFiltering:"footable_filtering"},t=function(n,t){var i,o={};for(i in n)"filter"===i||angular.isUndefined(e[i])||angular.isFunction(scope.$eval(t[i]))||(o[i]=t[i]);return o},i=function(n,t,i){var o;for(o in i)if("filter"!==o&&!angular.isUndefined(e[o])){var r=e[o];angular.isFunction(t.$eval(i[o]))&&n.bind(r,t.$eval(i[o]))}};return{restrict:"C",link:function(e,o,r){var a={"event-filtering":null};n(function(){angular.extend(a,footable.options),angular.extend(a,t(a,r));var f={};f="function"==typeof o.footable?o.footable(a):jQuery(o).footable(a),i(f,e,r),e.$watch(function(){return r.loadWhen},function(){n(function(){o.trigger("footable_redraw")})})},1e3)}}}]); \ No newline at end of file +"use strict";angular.module("ui.footable",[]).directive("footable",["$timeout",function(n){var e={beforeFiltering:"footable_filtering"},t=function(n,t){var i,o={};for(i in n)"filter"===i||angular.isUndefined(e[i])||angular.isFunction(scope.$eval(t[i]))||(o[i]=t[i]);return o},i=function(n,t,i){var o;for(o in i)if("filter"!==o&&!angular.isUndefined(e[o])){var r=e[o];angular.isFunction(t.$eval(i[o]))&&n.bind(r,t.$eval(i[o]))}};return{restrict:"C",link:function(e,o,r){var a={"event-filtering":null};n(function(){angular.extend(a,footable.options),angular.extend(a,t(a,r));var l={};l="function"==typeof o.footable?o.footable(a):jQuery(o).footable(a),i(l,e,r),e.$watch(function(){return r.loadWhen},function(){n(function(){o.triggerHandler("footable_redraw")})})},1e3)}}}]); \ No newline at end of file diff --git a/src/angular-footable.js b/src/angular-footable.js index 9238e2f..08ec352 100644 --- a/src/angular-footable.js +++ b/src/angular-footable.js @@ -56,7 +56,7 @@ angular bindEventHandler(tableObj, scope, attrs); scope.$watch(function() {return attrs.loadWhen; }, function(){ $timeout(function(){ - element.trigger('footable_redraw'); + element.triggerHandler('footable_redraw'); }); }); },1000);