o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1397508829.86769: @value" {I" class:ETI"ProcessedAsset;FI"logical_path;TI"(locomotive/views/pages/list_view.js;FI" pathname;TI"Ÿ/Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-5337f0929131/app/assets/javascripts/locomotive/views/pages/list_view.js.coffee;FI"content_type;TI"application/javascript;TI" mtime;TI"2014-04-10T01:06:58+02: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.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-5337f0929131/app/assets/javascripts/locomotive/views/pages/list_view.js.coffee;FI"dependency_paths;T[{I" path;TI"Ÿ/Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-5337f0929131/app/assets/javascripts/locomotive/views/pages/list_view.js.coffee;FI" mtime;TI"2014-04-10T01:06:58+02:00;TI" digest;TI"%1bbbd112a3ea0bd243556d441c89625f;FI" _version;TI"%ffd318ca8b794f42f5029101c2cf5d91;F