Sha256: 2dd91f5252c70c9b5daf2e8282a1218eddaf9574e5391b6e4df5185f174fc190
Contents?: true
Size: 1.75 KB
Versions: 8
Compression:
Stored size: 1.75 KB
Contents
o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1384182734.818868:@value"–{I" class:ETI"ProcessedAsset; FI"logical_path; TI"locomotive/cmd.js; FI" pathname; TI"‚/Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/vendor/assets/javascripts/locomotive/cmd.js; FI"content_type; TI"application/javascript; TI" mtime; TI"2013-11-11T00:40:29+01:00; TI"length; TiÏI"digest; TI"%546aefd7b2a0ac7e25ebccb20b461e6c; FI"source; TI"Ï/** * Version 0.0.1 * Catch the CTRL+S keys combination and trigger a callback * Didier Lafforgue */ $.cmd = function(key, callback, args, options) { var keyCode = key.charCodeAt(0); var altKeyCode = keyCode + (32 * (keyCode < 97 ? 1 : -1)); options = (options || { ignoreCase: false }); if (!options.ignoreCase) altKeyCode = null; doc = options.document || window.document; $(doc).keydown(function(e) { var isCtrl = false; if (!args) args = []; // IE barks when args is null if (e.ctrlKey || e.metaKey) isCtrl = true; if ((keyCode == e.which || altKeyCode == e.which) && isCtrl) { e.preventDefault(); callback.apply(this, args); return false; } }); }; ; TI"dependency_digest; TI"%bd22eb4d58ecf9f6dc4d082ffe96efeb; FI"required_paths; T[I"‚/Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/vendor/assets/javascripts/locomotive/cmd.js; FI"dependency_paths; T[{I" path; TI"‚/Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/vendor/assets/javascripts/locomotive/cmd.js; FI" mtime; TI"2013-11-11T00:40:29+01:00; TI"digest; TI"%821185653274928f27b2d64317761424; FI" _version; TI"%ffd318ca8b794f42f5029101c2cf5d91; F
Version data entries
8 entries across 8 versions & 1 rubygems