Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Chris Sessions's Profile

GitHub User: samadhiBot

Site: http://flying-saucer.net/

Comments by Chris Sessions

Avatar

Event handler declaration has changed in Mercury... try:

javascript
jQuery(function() {
  Mercury.on('ready', function() {
    var link = $('#mercury_iframe').contents().find('#edit_link');
    Mercury.saveURL = link.data('save-url');
    link.hide();
  });
  Mercury.on('saved', function() {
    window.location = window.location.href.replace(/\/editor\//i, '/');
  });
});