diff --git a/app/assets/javascripts/app/lib/app_post/interface_handle.js.coffee b/app/assets/javascripts/app/lib/app_post/interface_handle.js.coffee index 6a33cf20d..f33a6e352 100644 --- a/app/assets/javascripts/app/lib/app_post/interface_handle.js.coffee +++ b/app/assets/javascripts/app/lib/app_post/interface_handle.js.coffee @@ -3,7 +3,10 @@ class App.Run extends App.Controller super @el = $('#app') - @trigger('app:ready') + App.Event.trigger('app:init') + + # browser check + # App.Browser.check() # init collections App.Collection.init() @@ -15,17 +18,19 @@ class App.Run extends App.Controller App.Auth.loginCheck() # start widgets - @trigger('widget:init') + App.Event.trigger('widget:init') widgets = App.Config.get( 'Widgets' ) if widgets for key, widget of widgets @el.append('
') new widget( el: @el.find("##{key}") ) - @trigger('widget:ready') + App.Event.trigger('widget:ready') # bind to fill selected text into App.ClipBoard.bind( @el ) + App.Event.trigger('app:ready') + class App.Content extends App.Controller className: 'container' diff --git a/doc/app_events.txt b/doc/app_events.txt index 8a5c81c0c..5af6d6ef1 100644 --- a/doc/app_events.txt +++ b/doc/app_events.txt @@ -1,6 +1,6 @@ 1) App Boot -1.1) app:ready +1.1) app:init 1.2) collection:init 1.2.1) collection:ready @@ -17,6 +17,8 @@ 1.5) widget:init 1.5.1) widget:ready +1.6) app:ready + 2) Task 2.1) taskbar:init