{I" class:ETI"BundledAsset;FI"logical_path;TI"%rubber_ring/duplicable_editor.js;FI" pathname;TI"g/Users/zigomir/development/rubber_ring/app/assets/javascripts/rubber_ring/duplicable_editor.coffee;FI"content_type;TI"application/javascript;TI" mtime;Tl+û!…QI" length;Ti^I" digest;TI"%2b7034b15bee7fb79e0cf3bcb43cd67b;FI" source;TI"^(function() { this.DuplicableEditor = (function() { function DuplicableEditor(action_btns) { this.action_btns = action_btns; this.pm = new PersistenceManager(action_btns); } DuplicableEditor.prototype.init = function() { var _this = this; return $("#rr-repeat .repeat").click(function(e) { var $input, action, key, new_val, val; key = $(e.currentTarget).data("cms"); action = $(e.currentTarget).data("action"); $input = $("#" + key); val = $input.val(); new_val = parseInt(val, 10) + (action === "add" ? 1 : -1); if (new_val > 0) { $input.val(new_val); return _this.pm.save($input).then(function() { return window.location.reload(true); }); } }); }; return DuplicableEditor; })(); }).call(this); ;TI"required_assets_digest;TI"%414a92414038c9b96639cd1b875685fe;FI" _version;TI"%1e2632a10b8c877576b37720d5bf8883;F