Sha256: 28aa2e522c26f0cbfdf37e351abb40ce306467596db8f8729687e81f21cba415

Contents?: true

Size: 1.31 KB

Versions: 5

Compression:

Stored size: 1.31 KB

Contents

o: ActiveSupport::Cache::Entry	:@compressedF:@expires_in0:@created_atf1355470625.5894341:@value"{I"
class:EFI"BundledAsset;FI"logical_path;FI"$mercury/modals/insertsnippet.js;FI"
pathname;FI"/Users/brownjohn/.rvm/gems/ruby-1.9.3-p194/gems/mercury-rails-0.8.0/app/assets/javascripts/mercury/modals/insertsnippet.js.coffee;FI"content_type;FI"application/javascript;FI"
mtime;FI"2012-08-08T16:13:36+08:00;FI"length;FiI"digest;F"%da4e3210b207855ae95db144260aac20I"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"%f3003f8e5cfb4bf578c889b24165c85cI"
_version;F"%9f3b95dd7ea3030dc35985c0a8020862

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
amalgam-2.1.4 spec/dummy/tmp/cache/assets/D7F/600/sprockets%2Fe39484299c25cdfefefc7d33e741b325
amalgam-2.1.3.1 spec/dummy/tmp/cache/assets/D7F/600/sprockets%2Fe39484299c25cdfefefc7d33e741b325
amalgam-2.1.3 spec/dummy/tmp/cache/assets/D7F/600/sprockets%2Fe39484299c25cdfefefc7d33e741b325
amalgam-2.1.2 spec/dummy/tmp/cache/assets/D7F/600/sprockets%2Fe39484299c25cdfefefc7d33e741b325
amalgam-2.1.1 spec/dummy/tmp/cache/assets/D7F/600/sprockets%2Fe39484299c25cdfefefc7d33e741b325