Sha256: 0ec003a147429043bc99da237035d6d6a5a882961f0ec9f8167f36d4fe9c7416

Contents?: true

Size: 1.32 KB

Versions: 4

Compression:

Stored size: 1.32 KB

Contents

{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

Version data entries

4 entries across 2 versions & 1 rubygems

Version Path
rubber_ring-0.1.1 test/dummy/tmp/cache/assets/development/sprockets/66c2afe997efeeb00c23f320cd5154b1
rubber_ring-0.1.1 test/dummy/tmp/cache/assets/development/sprockets/9a27bf15ceccd6156c4fbddfe430431f
rubber_ring-0.0.1 test/dummy/tmp/cache/assets/development/sprockets/66c2afe997efeeb00c23f320cd5154b1
rubber_ring-0.0.1 test/dummy/tmp/cache/assets/development/sprockets/9a27bf15ceccd6156c4fbddfe430431f