Sha256: 88cf2f0a243316c3f80eff7623389f0045c7ec6bb92399772992898e2429f455
Contents?: true
Size: 1.31 KB
Versions: 1
Compression:
Stored size: 1.31 KB
Contents
$(document).ready -> $('[data-toggle="tabajax"]').click (e) -> $this = $(this) url = $this.attr('href') target = $this.attr('data-target') $.get url, (data) -> $(target).html data $this.tab 'show' false $(document.body).on 'show.bs.modal', '#modal', (event) -> button = $(event.relatedTarget) url = button.data('url') modal = $(this) modal.find('.modal-title').text button.data('title') modal.find('.modal-body').html "<img src='<%= asset_path('home_page/spinner.gif') %>'/>" if button.data('only-update-body') == true modal.find('.modal-body').load url else modal.find('.modal-content').load url $(document.body).on 'change', '#page_module_plugin', (event) -> $('#page_module_partial_path').empty() plugin = $(this).val() plugin = if plugin == 'home' then 'home_page' else 'home_page_' + plugin $.getJSON $(this).data('setting-url').replace(/x/, "#{plugin}.general.partial_paths"), (data) -> options = [] $.each data, (index, value) -> options.push "<option value='#{value}'>#{value}</option>" $('#page_module_partial_path').html(options.join('')) $('.datetime_picker').datetimepicker() $('.selectize_select').selectize create: true, sortField: 'text'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
home_page-0.0.6 | app/assets/javascripts/home_page/base.js.coffee.erb |