mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
trigger viewComplete in the view builder, not in init, otherwise you get no trigger when switching views
This commit is contained in:
parent
5006e71a3f
commit
ba319b6e1d
@ -118,6 +118,7 @@
|
||||
});
|
||||
|
||||
$(wo.view_container).append($container);
|
||||
c.$table.triggerHandler('viewComplete');
|
||||
},
|
||||
|
||||
removeView: function(c, wo) {
|
||||
@ -154,7 +155,6 @@
|
||||
c.$table.on('tablesorter-ready', function() {
|
||||
view.buildToolBar(c, wo);
|
||||
view.buildView(c, wo);
|
||||
c.$table.triggerHandler('viewComplete');
|
||||
});
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user