Sha256: 0e5ee947e4c6ec46b195864af6a919851fab772dce2fef388edff88aebe51814

Contents?: true

Size: 924 Bytes

Versions: 7

Compression:

Stored size: 924 Bytes

Contents

// Place all the behaviors and hooks related to the matching controller here.
// All this logic will automatically be available in application.js.

$().ready(function () {
  $('form.tandem_content_editor').on('ajax:success', function(event, content, status, jqXHR){
    $.get(parent.location.href, function(data, status, jqXHR){
      var content_id = '#' + content.tag;

      $(content_id, parent.document).html( $(content_id, data).html() );
      parent.$.fn.colorbox.close();
    });
  });

  $('.wymeditor').wymeditor({ wymPath: '/assets/tandem/wymeditor/jquery.wymeditor.min.js',
                              basePath: '/assets/tandem/wymeditor/',
                              skinPath: "/assets/tandem/wymeditor/skins/default/",
                              jQueryPath: "/assets/jquery.js"
  });

  $('h3.settings-toggle').live('click', function () {
    $('div.advanced-settings').slideToggle('slow');
  });
});

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
tandem-0.2.5 app/assets/javascripts/tandem/popup.js
tandem-0.2.4 app/assets/javascripts/tandem/popup.js
tandem-0.2.3 app/assets/javascripts/tandem/popup.js
tandem-0.2.2 app/assets/javascripts/tandem/popup.js
tandem-0.2.1 app/assets/javascripts/tandem/popup.js
tandem-0.2.0 app/assets/javascripts/tandem/popup.js
tandem-0.2.0.rc app/assets/javascripts/tandem/popup.js