{I" class:ETI"ProcessedAsset;FI"logical_path;TI"rubber_ring/editor.js;FI" pathname;TI"[/home/vagrant/development/rubber_ring/app/assets/javascripts/rubber_ring/editor.coffee;FI"content_type;TI"application/javascript;TI" mtime;Tl+…QI" length;TivI" digest;TI"%df00a7085c4bce836ae1779d868166e2;FI" source;TI"v(function() { $(function() { var $editable_content, config, de, le, pm; config = { action_btns: { reset_btn: '' } }; $editable_content = $("[contenteditable]"); pm = new PersistenceManager(config.action_btns); de = new DuplicableEditor(config.action_btns); le = new LinkEditor($editable_content); de.init(); le.init(); $("[contenteditable]").append(config.action_btns.reset_btn); $("body").on("click", ".reset-content", function(e) { var $content_to_remove; $content_to_remove = $(e.currentTarget).parent(); if (window.confirm("Really want to reset content?")) { return pm.remove($content_to_remove).then(function() { return window.location.reload(true); }); } }); $(".rubber_ring_attachment").click(function(e) { return e.preventDefault(); }); $("body").on("focus", "[contenteditable]", function() { var $this; $this = $(this); $this.data("before", $this.html()); return $this; }).on("blur", "[contenteditable]", function() { var $this; $this = $(this); if ($this.data("before") !== $this.html()) { $this.data("before", $this.html()); $this.trigger("change"); } return $this; }); $editable_content.change(function(e) { var $content; $content = $(e.currentTarget); return pm.save($content); }); return $editable_content.not(".multi-line").keydown(function(e) { if (e.keyCode === 13) { return e.preventDefault(); } }); }); }).call(this); ;TI"dependency_digest;TI"%6eca8fb425e00e2d135ad3887e11992c;FI"required_paths;T[I"[/home/vagrant/development/rubber_ring/app/assets/javascripts/rubber_ring/editor.coffee;FI"dependency_paths;T[{I" path;TI"[/home/vagrant/development/rubber_ring/app/assets/javascripts/rubber_ring/editor.coffee;FI" mtime;TI"2013-05-04T14:33:18+02:00;TI" digest;TI"%0e0864e835e36ee190863071b060b59b;FI" _version;TI"%1e2632a10b8c877576b37720d5bf8883;F