{I"
class:ETI"ProcessedAsset; FI"logical_path; TI"mercury/page_editor.js; FI"
pathname; TI"‹/home/edik/.rvm/gems/ruby-2.0.0-p247@very_simple_cms/bundler/gems/mercury-3e0245e33195/app/assets/javascripts/mercury/page_editor.js.coffee; FI"content_type; TI"application/javascript; TI"
mtime; Tl+½¡9RI"length; Ti(6I"digest; TI"%31b9e7fd7c007e3c7ac4201ace7fdbbd; FI"source; TI"(6(function() {
this.Mercury.PageEditor = (function() {
function PageEditor(saveUrl, options) {
var token;
this.saveUrl = saveUrl != null ? saveUrl : null;
this.options = options != null ? options : {};
if (window.mercuryInstance) {
throw Mercury.I18n('Mercury.PageEditor can only be instantiated once.');
}
if (!(this.options.visible === false || this.options.visible === 'false')) {
this.options.visible = true;
}
this.visible = this.options.visible;
if (!(this.options.saveDataType === false || this.options.saveDataType)) {
this.options.saveDataType = 'json';
}
window.mercuryInstance = this;
this.regions = [];
this.initializeInterface();
if (token = jQuery(Mercury.config.csrfSelector).attr('content')) {
Mercury.csrfToken = token;
}
}
PageEditor.prototype.initializeInterface = function() {
var _ref, _ref1,
_this = this;
this.focusableElement = jQuery('', {
"class": 'mercury-focusable',
type: 'text'
}).appendTo((_ref = this.options.appendTo) != null ? _ref : 'body');
this.iframe = jQuery('