trigger viewComplete in the view builder, not in init, otherwise you get no trigger when switching views

This commit is contained in:
Justin F. Hallett 2016-07-07 10:39:46 -06:00
parent 5006e71a3f
commit ba319b6e1d

View File

@ -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');
});
},