o: ActiveSupport::Cache::Entry :@created_atf1368564515.162944:@expires_in0:@compressedF: @value"œ {I" class:EFI"ProcessedAsset;FI"logical_path;FI""flms/admin/pages/edit/edit.js;TI" pathname;FI"O/Users/kevin/flms/app/assets/javascripts/flms/admin/pages/edit/edit.coffee;TI"content_type;FI"application/javascript;FI" mtime;FI"2013-05-10T14:38:14-07:00;FI" length;FiˆI" digest;F"%3114cb95142d50e37a2ebffbb483194eI" source;FI"ˆ(function() { var __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }, __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; }; this.PageEditPage = (function(_super) { __extends(PageEditPage, _super); function PageEditPage() { this.sorting_finished = __bind(this.sorting_finished, this); this.save_button_clicked = __bind(this.save_button_clicked, this); this.active_switch_changed = __bind(this.active_switch_changed, this); PageEditPage.__super__.constructor.call(this, 'body'); this.block_list = new BlockList(this.$('.block_list')); this.block_list.on('sorting_finished', this.sorting_finished); this.save_button = this.$('#save'); this.save_button.click(this.save_button_clicked); this.$('.switch').on('switch-change', this.active_switch_changed); } PageEditPage.prototype.active_switch_changed = function() { return this.save_button.fadeIn(); }; PageEditPage.prototype.save_button_clicked = function() { return this.save_changes_to_server(); }; PageEditPage.prototype.save_changes_to_server = function() { var _this = this; return $.ajax({ url: document.url, method: 'PUT', contentType: 'application/json', data: JSON.stringify({ block_data: this.block_list.get_data() }), success: function() { return _this.save_button.fadeOut(); } }); }; PageEditPage.prototype.sorting_finished = function() { return this.save_button.fadeIn(); }; return PageEditPage; })(modularity.Module); }).call(this); ;TI"dependency_digest;F"%e43bca3eefca7b5fa525048401e7e92eI"required_paths;F[I"O/Users/kevin/flms/app/assets/javascripts/flms/admin/pages/edit/edit.coffee;TI"dependency_paths;F[{I" path;FI"O/Users/kevin/flms/app/assets/javascripts/flms/admin/pages/edit/edit.coffee;TI" mtime;FI"2013-05-10T14:38:14-07:00;FI" digest;F"%6728a6e9ed30d81ee0c2e5202c187072I" _version;F"%ffd318ca8b794f42f5029101c2cf5d91