o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1364984308.816503: @value"3 {I" class:EFI"ProcessedAsset;FI"logical_path;FI"3locomotive/views/content_entries/index_view.js;TI" pathname;FI"z/Users/papipo/Projects/locomotive/engine/app/assets/javascripts/locomotive/views/content_entries/index_view.js.coffee;TI"content_type;FI"application/javascript;FI" mtime;FI"2013-04-03T11:01:13+02:00;FI" length;FiI" digest;F"%2d82c8f41c7586c1c21a61c96158a051I" 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).ContentEntries || (_base.ContentEntries = {}); Locomotive.Views.ContentEntries.IndexView = (function(_super) { __extends(IndexView, _super); function IndexView() { _ref = IndexView.__super__.constructor.apply(this, arguments); return _ref; } IndexView.prototype.el = '#content'; IndexView.prototype.render = function() { this.make_sortable(); return this; }; IndexView.prototype.make_sortable = function() { var self; self = this; return this.$('ul#entries-list.sortable').sortable({ handle: 'span.handle', items: 'li.item', axis: 'y', update: function(event, ui) { return self.call_sort($(this)); } }); }; IndexView.prototype.call_sort = function(folder) { return $.rails.ajax({ url: folder.data('url'), type: 'post', dataType: 'json', data: { entries: _.map(folder.sortable('toArray'), function(el) { return el.replace('entry-', ''); }), _method: 'put' }, success: this.on_successful_sort, error: this.on_failed_sort }); }; IndexView.prototype.on_successful_sort = function(data, status, xhr) { return $.growl('success', xhr.getResponseHeader('X-Message')); }; IndexView.prototype.on_failed_sort = function(data, status, xhr) { return $.growl('error', xhr.getResponseHeader('X-Message')); }; return IndexView; })(Backbone.View); }).call(this); ;TI"dependency_digest;F"%82043bd7224ab03ee3a372f3288c3b31I"required_paths;F[I"z/Users/papipo/Projects/locomotive/engine/app/assets/javascripts/locomotive/views/content_entries/index_view.js.coffee;TI"dependency_paths;F[{I" path;FI"z/Users/papipo/Projects/locomotive/engine/app/assets/javascripts/locomotive/views/content_entries/index_view.js.coffee;TI" mtime;FI"2013-04-03T11:01:13+02:00;FI" digest;F"%5e0fbab6e13b88a3eb0f851ce5ef722aI" _version;F"%6776f581a4329e299531e1d52aa59832