vendor/assets/javascripts/bhf/application.js in bhf-0.6.3 vs vendor/assets/javascripts/bhf/application.js in bhf-0.6.4

- old
+ new

@@ -154,11 +154,11 @@ } setupSortables(platform); Browser.exec(js); ajaxNote.success(); windowHight = document.body.clientHeight; - document.body.fireEvent('platformUpdate'); + window.fireEvent('platformUpdate', [platform]); } }).send(); }; platforms.addEvents({ @@ -343,5 +343,18 @@ bhfInit(); rails.applyEvents(); ajaxNote.success(); }); } + +var initHelper = function(callback){ + var scopedCallback = function(){ + callback(document.body); + }; + if (document.addEventListener) { + document.addEventListener('page:load', scopedCallback); + } + window.addEvent('domready', scopedCallback); + window.addEvent('platformUpdate', callback); + window.addEvent('quickEditReady', callback); + +}; \ No newline at end of file