Sha256: 6bdac97b10debce8bde10336e5526167b4cb1dddedad8d6e259d3f33d4253028
Contents?: true
Size: 408 Bytes
Versions: 2
Compression:
Stored size: 408 Bytes
Contents
$(-> new Dispatcher ) class Dispatcher constructor: -> @initialize_page_scripts() initialize_page_scripts: -> page = $('body').attr('data-page') return false unless page path = page.split(':') contoller_name = path[0] action_name = path[1] switch page when 'orders:edit' new DynamicOrder when 'pages:new', 'pages:show', 'pages:edit' new Page
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
comable-backend-0.6.0 | app/assets/javascripts/comable/admin/dispatcher.coffee |
comable_backend-0.5.0 | app/assets/javascripts/comable/admin/dispatcher.coffee |