o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1416672643.412353: @value"í {I" class:ETI"ProcessedAsset;FI"logical_path;TI"3locomotive/views/content_entries/index_view.js;FI" pathname;TI"ž/Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/assets/javascripts/locomotive/views/content_entries/index_view.js.coffee;FI"content_type;TI"application/javascript;TI" mtime;TI"2014-11-22T16:47:36+01:00;TI" length;TiµI" digest;TI"%e6dfaf3f1dbad1f61861066d33faacdf;FI" source;TI"µ(function() { var _base, __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() { return IndexView.__super__.constructor.apply(this, arguments); } 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', decodeURIComponent($.parseJSON(xhr.getResponseHeader('X-Message')))); }; IndexView.prototype.on_failed_sort = function(data, status, xhr) { return $.growl('error', decodeURIComponent($.parseJSON(xhr.getResponseHeader('X-Message')))); }; return IndexView; })(Backbone.View); }).call(this); ;TI"dependency_digest;TI"%661eee5bf386670b96034d43423fd191;FI"required_paths;T[I"ž/Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/assets/javascripts/locomotive/views/content_entries/index_view.js.coffee;FI"dependency_paths;T[{I" path;TI"ž/Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/assets/javascripts/locomotive/views/content_entries/index_view.js.coffee;FI" mtime;TI"2014-11-22T16:47:36+01:00;TI" digest;TI"%a8d55a70fe746103c40349c5771aa968;FI" _version;TI"%ffd318ca8b794f42f5029101c2cf5d91;F