Sha256: f94e18d81d7751cd2c8f7b243da501d5a31561480179d731c938cea328bc088d
Contents?: true
Size: 1.21 KB
Versions: 2
Compression:
Stored size: 1.21 KB
Contents
{I" class:ETI"BundledAsset; FI"logical_path; TI"$mercury/modals/insertsnippet.js; FI" pathname; TI"”/home/edik/.rvm/gems/ruby-2.0.0-p247@very_simple_cms/bundler/gems/mercury-3e0245e33195/app/assets/javascripts/mercury/modals/insertsnippet.js.coffee; FI"content_type; TI"application/javascript; TI" mtime; Tl+½¡9RI"length; Ti¼I"digest; TI"%cd8055b38749d0b02609f62b952f4304; FI"source; TI"¼(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); ; TI"required_assets_digest; TI"%b762ffcf698cac5e88d15504393d5253; FI" _version; TI"%2cf3622cbba861b85d33ffabfa420c13; F
Version data entries
2 entries across 1 versions & 1 rubygems