o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1416672645.771213: @value"ú {I" class:ETI"ProcessedAsset;FI"logical_path;TI"(locomotive/views/pages/list_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/pages/list_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"%23b733a41c5c324d25d62130a38d6036;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).Pages || (_base.Pages = {}); Locomotive.Views.Pages.ListView = (function(_super) { __extends(ListView, _super); function ListView() { return ListView.__super__.constructor.apply(this, arguments); } ListView.prototype.el = '#pages-list'; ListView.prototype.render = function() { this.make_foldable(); this.make_sortable(); return this; }; ListView.prototype.make_foldable = function() { return this.$('ul.folder .toggler').toggleMe(); }; ListView.prototype.make_sortable = function() { var self; self = this; return this.$('ul.folder').sortable({ handle: 'em', axis: 'y', update: function(event, ui) { return self.call_sort($(this)); } }); }; ListView.prototype.call_sort = function(folder) { return $.rails.ajax({ url: folder.data('url'), type: 'post', dataType: 'json', data: { children: _.map(folder.sortable('toArray'), function(el) { return el.replace('item-', ''); }), _method: 'put' }, success: this.on_successful_sort, error: this.on_failed_sort }); }; ListView.prototype.on_successful_sort = function(data, status, xhr) { return $.growl('success', decodeURIComponent($.parseJSON(xhr.getResponseHeader('X-Message')))); }; ListView.prototype.on_failed_sort = function(data, status, xhr) { return $.growl('error', decodeURIComponent($.parseJSON(xhr.getResponseHeader('X-Message')))); }; return ListView; })(Backbone.View); }).call(this); ;TI"dependency_digest;TI"%b1814a3c9562022537a21845c2e8e19a;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/pages/list_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/pages/list_view.js.coffee;FI" mtime;TI"2014-11-22T16:47:36+01:00;TI" digest;TI"%1bbbd112a3ea0bd243556d441c89625f;FI" _version;TI"%ffd318ca8b794f42f5029101c2cf5d91;F