Sha256: 2e6abbb8de05937c791a4e82cbbfd8517f39462ebe9afa1fe19a622c41fadf98
Contents?: true
Size: 743 Bytes
Versions: 3
Compression:
Stored size: 743 Bytes
Contents
# # App is the (only) global object # # reacts to 'app.something' events # window.App ||= { name: 'App'} App.trigger = (event) -> $(App).trigger(event) # # signal App App.init = -> # App.trigger('app:init') # # Try to keep users from double-clicking submit's # # document.addEventListener('DOMContentLoaded', disableMultipleSubmits, false); # # Prepare close-notice's for acting on clicks to remove div # $(document.body).unbind('click.close_notice') $(document.body).on 'click.close_notice', 'a.close-notice', App.closeNotice # # signal a pageload App.pageload = -> App.trigger('app:pageload') # # closeNotice # will close the notice DIV App.closeNotice = (e) -> fadeItOut $(e).closest('.alert') #.remove()
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
abstracted-0.2.7 | app/assets/javascripts/init.js.coffee |
abstracted-0.2.6 | app/assets/javascripts/init.js.coffee |
abstracted-0.2.5 | app/assets/javascripts/init.js.coffee |