Sha256: d66827cb24b01651a920819d4955d5bfec40b01278ef6e4323d8088d26786643
Contents?: true
Size: 967 Bytes
Versions: 6
Compression:
Stored size: 967 Bytes
Contents
# # App is the (only) global object # # reacts to 'app.something' events # window.App ||= { name: 'App', shared: null, cf: null } App.shared = -> @shared App.currentForm = (val) -> @shared.setCurrentForm(val) App.currentForm = -> @shared.getCurrentForm() App.trigger = (event) -> $(App).trigger(event) # # signal App App.init = -> @shared = new App.Shared() # 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) -> shared = new App.Shared() shared.fadeItOut $(e).closest('.alert') #.remove()
Version data entries
6 entries across 6 versions & 1 rubygems