Sha256: 02cb5858a10480402b0c43d85757925b0a201b4bbbd8ef4758c471e292953caa

Contents?: true

Size: 1.33 KB

Versions: 2

Compression:

Stored size: 1.33 KB

Contents

o: ActiveSupport::Cache::Entry	:@compressedF:@expires_in0:@created_atf1388437013.101015:@value"è{I"
class:EFI"BundledAsset;FI"logical_path;FI"$mercury/modals/insertsnippet.js;FI"
pathname;FI"•/Users/jrissler/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/mercury-rails-0.9.0/app/assets/javascripts/mercury/modals/insertsnippet.js.coffee;FI"content_type;FI"application/javascript;FI"
mtime;FI"2013-12-30T11:31:51-05:00;FI"length;Fi½I"digest;F"%59bd764624e2913e06608744ddc441fdI"source;FI"½(function() {

  this.Mercury.modalHandlers.insertSnippet = function() {
    var _this = this;
    return this.element.find('form').on('submit', function(event) {
      var serializedForm, snippet;
      event.preventDefault();
      serializedForm = _this.element.find('form').serializeObject();
      if (Mercury.snippet) {
        snippet = Mercury.snippet;
        snippet.setOptions(serializedForm);
        Mercury.snippet = null;
      } else {
        snippet = Mercury.Snippet.create(_this.options.snippetName, serializedForm);
      }
      Mercury.trigger('action', {
        action: 'insertSnippet',
        value: snippet
      });
      return _this.hide();
    });
  };

}).call(this);
;FI"required_assets_digest;F"%c11ec1069b0243588b8789c4e52ff1b6I"
_version;F"%6776f581a4329e299531e1d52aa59832

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
wafflemix-0.0.6 test/dummy/tmp/cache/assets/CCF/920/sprockets%2Fc7242a5b0059308011fadd91b4e459a7
wafflemix-0.0.5 test/dummy/tmp/cache/assets/CCF/920/sprockets%2Fc7242a5b0059308011fadd91b4e459a7