Sha256: 858539c49340aa2dce1182960e8c79732c2a4e50555bd7aa97b65ebb61dd06b1
Contents?: true
Size: 969 Bytes
Versions: 7
Compression:
Stored size: 969 Bytes
Contents
# Place all the behaviors and hooks related to the matching controller here. # All this logic will automatically be available in application.js. $(document).ready -> $('.page_link').colorbox() if $('#tandem_page_links').length > 0 $('body').addClass('tandem-admin-bar') $('div.tandem_content').on 'mouseenter': -> $('div.tandem_toolbar', $(this)).fadeIn('slow') 'mouseleave': -> $('div.tandem_toolbar', $(this)).fadeOut('slow') 'click': -> $.fn.colorbox href: $('a.tandem_edit_link', $(this)).attr('href') iframe: true width: '95%' height: '90%' open: true return false $(document).on 'ajax:success', 'form.tandem-page-form', (event, content, status, jqXHR) -> returnedForm = $('form.tandem-page-form', content) if returnedForm.find('#error_explanation').length > 0 $('form.tandem-page-form').replaceWith returnedForm else window.location.reload()
Version data entries
7 entries across 7 versions & 1 rubygems