Sha256: 78573c0b36481ed9d04a23d9b3e5343baa5517b40772f1111b1b21d19be9adeb
Contents?: true
Size: 1.38 KB
Versions: 1
Compression:
Stored size: 1.38 KB
Contents
#= require ab_admin/core/utils #= require ab_admin/core/ui_utils #= require ab_admin/core/pjax #= require ab_admin/core/confirmation #= require ab_admin/core/batch_actions #= require ab_admin/core/search_form #= require ab_admin/core/pagination #= require ab_admin/core/columns_hider $ -> if $('#list')[0] window.viewType = 'list' else if $('form.simple_form')[0] window.viewType = 'form' $(document).on 'admin:init', (e) -> return unless window.viewType == 'list' clonePagination() initPopover() initTooltip() $('#list tbody tr').dblclick (e) -> e.preventDefault() $el = $(this) window.location.href = $el.find('td a.resource_id_link').prop('href') $('.per_page').click -> $.cookie('pp', $(this).data('val')) $(document).on 'admin:init', (e) -> return unless window.viewType == 'form' window.resource_id = $('form.simple_form').data('id') initEditor() inputSetToggle() # $('form .region_ac').regionAc() # new NestedFieldsAdder # region_ac: true # callback: -> # initPickers() # initChosen() # initEditor() $(document).on 'pjax:end', -> $(document).trigger({type: 'admin:init', pjax: true}) $(document).trigger({type: 'admin:init'}) initChosen() # initAcFileds() if window.gon?.bg_color $('body').css('background-color', "##{window.gon.bg_color.replace(/^#/, '')}")
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ab_admin-0.1.0 | app/assets/javascripts/ab_admin/core/init.js.coffee |