o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1381142253.664594: @value"#{I" class:EFI"ProcessedAsset;FI"logical_path;FI"9locomotive/views/content_entries/_popup_form_view.js;TI" pathname;FI"”/Users/papipo/.rvm/gems/ruby-1.9.3-p448/gems/locomotive_cms-2.1.0/app/assets/javascripts/locomotive/views/content_entries/_popup_form_view.js.coffee;TI"content_type;FI"application/javascript;FI" mtime;FI"2013-10-07T10:55:40+02:00;FI" length;Fi—I" digest;F"%f7421716fd7b59b5ef9e768d3a5ebe7fI" source;FI"—(function() { var _base, _ref, __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }, __hasProp = {}.hasOwnProperty, __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }; (_base = Locomotive.Views).ContentEntries || (_base.ContentEntries = {}); Locomotive.Views.ContentEntries.PopupFormView = (function(_super) { __extends(PopupFormView, _super); function PopupFormView() { this.reset = __bind(this.reset, this); _ref = PopupFormView.__super__.constructor.apply(this, arguments); return _ref; } PopupFormView.prototype.initialize = function() { this.create_dialog(); return PopupFormView.__super__.initialize.call(this); }; PopupFormView.prototype.render = function() { PopupFormView.__super__.render.call(this); return this; }; PopupFormView.prototype.save = function(event) { var _this = this; return this.save_in_ajax(event, { headers: { 'X-Flash': true }, on_success: function(response, xhr) { var entry; entry = new Locomotive.Models.ContentEntry(JSON.parse(xhr.responseText)); _this.options.parent_view.insert_or_update_entry(entry); return _this.close(); } }); }; PopupFormView.prototype.create_dialog = function() { var _this = this; return this.dialog = $(this.el).dialog({ autoOpen: false, modal: true, dialogClass: 'content-entry-popup', zIndex: window.application_view.unique_dialog_zindex(), width: 770, create: function(event, ui) { var actions; $(_this.el).prev().find('.ui-dialog-title').html(_this.$('h2').html()); _this.$('h2').remove(); actions = _this.$('.dialog-actions').appendTo($(_this.el).parent()).addClass('ui-dialog-buttonpane ui-widget-content ui-helper-clearfix'); actions.find('#close-link').click(function(event) { return _this.close(event); }); return actions.find('input[type=submit]').click(function(event) { var $buttons_pane, $form; $form = _this.$el.find('form'); $buttons_pane = $(event.target).parent(); $.rails.disableFormElements($buttons_pane); return $form.trigger('submit').bind('ajax:complete', function() { return $.rails.enableFormElements($buttons_pane); }); }); }, open: function(event, ui, extra) { return $(_this.el).dialog('overlayEl').bind('click', function() { return _this.close(); }); } }); }; PopupFormView.prototype.open = function() { var parent_el; parent_el = $(this.el).parent(); if (this.model.isNew()) { parent_el.find('.edit-section').hide(); parent_el.find('.new-section').show(); } else { parent_el.find('.new-section').hide(); parent_el.find('.edit-section').show(); } this.clear_errors(); return $(this.el).dialog('open'); }; PopupFormView.prototype.close = function(event) { if (event != null) { event.stopPropagation() & event.preventDefault(); } this.clear_errors(); $(this.el).dialog('overlayEl').unbind('click'); return $(this.el).dialog('close'); }; PopupFormView.prototype.center = function() { return $(this.el).dialog('option', 'position', 'center'); }; PopupFormView.prototype.reset = function(entry) { this.model.set(entry.attributes); if (entry.isNew()) { this.model.id = null; return PopupFormView.__super__.reset.call(this); } else { return this.refresh(); } }; PopupFormView.prototype.slugify_label_field = function() {}; PopupFormView.prototype.enable_has_many_fields = function() {}; PopupFormView.prototype.enable_many_to_many_fields = function() {}; PopupFormView.prototype.tinyMCE_settings = function() { return _.extend({ language: window.locale }, window.Locomotive.tinyMCE.popupSettings); }; return PopupFormView; })(Locomotive.Views.ContentEntries.FormView); }).call(this); ;TI"dependency_digest;F"%ce951bbc1af0822956ae551291ee6267I"required_paths;F[I"„/Users/papipo/.rvm/gems/ruby-1.9.3-p448/gems/locomotive_cms-2.1.0/app/assets/javascripts/locomotive/views/shared/form_view.js.coffee;TI"”/Users/papipo/.rvm/gems/ruby-1.9.3-p448/gems/locomotive_cms-2.1.0/app/assets/javascripts/locomotive/views/content_entries/_popup_form_view.js.coffee;TI"dependency_paths;F[{I" path;FI"”/Users/papipo/.rvm/gems/ruby-1.9.3-p448/gems/locomotive_cms-2.1.0/app/assets/javascripts/locomotive/views/content_entries/_popup_form_view.js.coffee;TI" mtime;FI"2013-10-07T10:55:40+02:00;FI" digest;F"%37500e6cf79809551e943dcb11717638{I" path;FI"„/Users/papipo/.rvm/gems/ruby-1.9.3-p448/gems/locomotive_cms-2.1.0/app/assets/javascripts/locomotive/views/shared/form_view.js.coffee;TI" mtime;FI"2013-10-07T10:55:40+02:00;FI" digest;F"%e4f8acd406d0d29f928f278bc23eee51I" _version;F"%ffd318ca8b794f42f5029101c2cf5d91