Don't trigger an init() on ready if already active or mkws_noready
authorJason Skomorowski <jason@indexdata.com>
Mon, 18 Aug 2014 19:44:04 +0000 (15:44 -0400)
committerJason Skomorowski <jason@indexdata.com>
Mon, 18 Aug 2014 19:44:04 +0000 (15:44 -0400)
src/mkws-core.js

index 3316f28..3031dd0 100644 (file)
@@ -667,7 +667,9 @@ mkws.pagerNext = function(tname) {
   };
 
   $(document).ready(function() {
-    mkws.init();
+    if (!window.mkws_noready && !mkws.authenticating && !mkws.active) {
+       mkws.init();
+    }
   });
 
 })(mkws.$);