Sha256: ce926df82745ee57842e316423ddd26302d4909e25d88785f21faf08a90038f1
Contents?: true
Size: 788 Bytes
Versions: 9
Compression:
Stored size: 788 Bytes
Contents
# # standard triggers - and actions # $(App).on 'app:modal:open', -> # # mount React Components laying dormant in a modal window.ReactRailsUJS.mountComponents() App.trigger('app:pageload') $(App).on 'app:pageload', -> page = new App.Materialize() page.prepare() sweet = new App.SweetAlert() sweet.prepare() if $('table.resources_table') rl = new App.ResourcesList($('form')) rl.prepare() rs = new App.ResourceForm() rs.prepare() fab = new App.fabDelete() fab.prepare() # # PageOnChange really just calls a pageload - as of now 19-06-15 # fixed elements like SELECT's, Materialized's elements, et al. # # @pageOnChange = () -> # console.log 'page changed ' # pageOnLoad() # # call the App.pageload $(document).on 'page:change', -> App.pageload()
Version data entries
9 entries across 9 versions & 1 rubygems