From ba319b6e1d822149c659e317cc26bdf76687ade5 Mon Sep 17 00:00:00 2001 From: "Justin F. Hallett" Date: Thu, 7 Jul 2016 10:39:46 -0600 Subject: [PATCH] trigger viewComplete in the view builder, not in init, otherwise you get no trigger when switching views --- js/widgets/widget-view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/widgets/widget-view.js b/js/widgets/widget-view.js index 810fd02f..940c7095 100644 --- a/js/widgets/widget-view.js +++ b/js/widgets/widget-view.js @@ -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'); }); },