o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1364984316.111726: @value"ú {I" class:EFI"ProcessedAsset;FI"logical_path;FI"'locomotive/views/sites/new_view.js;TI" pathname;FI"n/Users/papipo/Projects/locomotive/engine/app/assets/javascripts/locomotive/views/sites/new_view.js.coffee;TI"content_type;FI"application/javascript;FI" mtime;FI"2013-01-18T09:21:50+01:00;FI" length;FièI" digest;F"%aa9b2670f93be8684b93c7c2303080a5I" 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"%eb06ef878cdd2d54cb4322b3182e9d8fI"required_paths;F[I"p/Users/papipo/Projects/locomotive/engine/app/assets/javascripts/locomotive/views/shared/form_view.js.coffee;TI"r/Users/papipo/Projects/locomotive/engine/app/assets/javascripts/locomotive/views/sites/domains_view.js.coffee;TI"n/Users/papipo/Projects/locomotive/engine/app/assets/javascripts/locomotive/views/sites/new_view.js.coffee;TI"dependency_paths;F[{I" path;FI"n/Users/papipo/Projects/locomotive/engine/app/assets/javascripts/locomotive/views/sites/new_view.js.coffee;TI" mtime;FI"2013-01-18T09:21:50+01:00;FI" digest;F"%3049e8134ee770a5ed73a3ed7ad8d138{I" path;FI"p/Users/papipo/Projects/locomotive/engine/app/assets/javascripts/locomotive/views/shared/form_view.js.coffee;TI" mtime;FI"2013-04-03T11:01:13+02:00;FI" digest;F"%a6e3a1e43e6f34490cc614f779383a34{I" path;FI"r/Users/papipo/Projects/locomotive/engine/app/assets/javascripts/locomotive/views/sites/domains_view.js.coffee;TI" mtime;FI"2013-01-18T09:21:50+01:00;FI" digest;F"%cb39d45f7d22031cf828d2fdb7b34613I" _version;F"%6776f581a4329e299531e1d52aa59832