o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1381142256.9647932: @value"Ž {I" class:EFI"ProcessedAsset;FI"logical_path;FI"(locomotive/views/pages/list_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/pages/list_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"%26d0ed56a33d2392a1d96974181d4a6cI" 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).Pages || (_base.Pages = {}); Locomotive.Views.Pages.ListView = (function(_super) { __extends(ListView, _super); function ListView() { _ref = ListView.__super__.constructor.apply(this, arguments); return _ref; } 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', xhr.getResponseHeader('X-Message')); }; ListView.prototype.on_failed_sort = function(data, status, xhr) { return $.growl('error', xhr.getResponseHeader('X-Message')); }; return ListView; })(Backbone.View); }).call(this); ;TI"dependency_digest;F"%242e4f5a7940fabf20b582f364370fe6I"required_paths;F[I"ƒ/Users/papipo/.rvm/gems/ruby-1.9.3-p448/gems/locomotive_cms-2.1.0/app/assets/javascripts/locomotive/views/pages/list_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/pages/list_view.js.coffee;TI" mtime;FI"2013-10-07T10:55:40+02:00;FI" digest;F"%51ef8e7f518b50dee7e26320e556836fI" _version;F"%ffd318ca8b794f42f5029101c2cf5d91