o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1381142258.6296692: @value"°{I" class:EFI"ProcessedAsset;FI"logical_path;FI"'locomotive/views/sites/new_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/sites/new_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"%9095f044678836286ab9ba5a93f62566I" source;FI"è(function() { var _base, _ref, __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).Sites || (_base.Sites = {}); Locomotive.Views.Sites.NewView = (function(_super) { __extends(NewView, _super); function NewView() { _ref = NewView.__super__.constructor.apply(this, arguments); return _ref; } NewView.prototype.el = '#content'; NewView.prototype.events = { 'submit': 'save' }; NewView.prototype.initialize = function() { this.model = new Locomotive.Models.Site(); return Backbone.ModelBinding.bind(this); }; NewView.prototype.render = function() { NewView.__super__.render.call(this); return this.render_domains(); }; NewView.prototype.render_domains = function() { this.domains_view = new Locomotive.Views.Sites.DomainsView({ model: this.model, errors: this.options.errors }); return this.$('#site_domains_input label').after(this.domains_view.render().el); }; NewView.prototype.save = function(event) { return this.save_in_ajax(event, { on_success: function(response, xhr) { return window.location.href = xhr.getResponseHeader('location'); } }); }; NewView.prototype.show_error = function(attribute, message, html) { if (attribute === 'domains') { return this.domains_view.show_error(message); } else { return NewView.__super__.show_error.apply(this, arguments); } }; NewView.prototype.remove = function() { this.domains_view.remove(); return NewView.__super__.remove.apply(this, arguments); }; return NewView; })(Locomotive.Views.Shared.FormView); }).call(this); ;TI"dependency_digest;F"%fd49a191bd3e982b1f015875d3723442I"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/sites/domains_view.js.coffee;TI"‚/Users/papipo/.rvm/gems/ruby-1.9.3-p448/gems/locomotive_cms-2.1.0/app/assets/javascripts/locomotive/views/sites/new_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/sites/new_view.js.coffee;TI" mtime;FI"2013-10-07T10:55:40+02:00;FI" digest;F"%26ae9322144bdf15f0e2fbf8d7f0268d{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"%e4f8acd406d0d29f928f278bc23eee51{I" path;FI"†/Users/papipo/.rvm/gems/ruby-1.9.3-p448/gems/locomotive_cms-2.1.0/app/assets/javascripts/locomotive/views/sites/domains_view.js.coffee;TI" mtime;FI"2013-10-07T10:55:40+02:00;FI" digest;F"%1e3c50655b4cbf1908edc109ee95288cI" _version;F"%ffd318ca8b794f42f5029101c2cf5d91