vendor/assets/javascripts/base/_table.js in active_frontend-14.0.77 vs vendor/assets/javascripts/base/_table.js in active_frontend-14.0.78

- old
+ new

@@ -11,10 +11,11 @@ this.init(); }; Table.VERSION = '1.0.0'; Table.DEFAULTS = { + onSortCallback: function (direction) {}, templates: { downArrow: '<i class="icon-chevron-down pull-right"></i>', noArrow: '<i class="icon-minus pull-right"></i>', upArrow: '<i class="icon-chevron-up pull-right"></i>' } @@ -112,9 +113,10 @@ default: reSort = 'up'; break; } + _self.options.onSortCallback(dataSort); _self.setSortStatus(trTh, reSort); var colIndex = 0; var sudoColIndex = 0;