Sha256: 5568046089b3d6c44b65b5d955a895b2fd7806b4661816cb9202bcdeee3f5a46

Contents?: true

Size: 460 Bytes

Versions: 11

Compression:

Stored size: 460 Bytes

Contents

(function($){
	$(document).ready(function(){
	
		$('.snippet').each(function(){
			var $this = $(this);
			var classes = $this.attr('class').split(' ');
			$.each(classes, function(k,v){
				var pieces = v.split('-');
				if (pieces[0] == 'snippet' && typeof pieces[1] != 'undefined') {
					var type = pieces[1];
					$this.on('keyup', function(e) {
						$el = $(this);
						$el.snippet(type);
					})
				}
			});
		});

	});
})(jQuery);

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
bonethug-0.0.17 skel/project_types/silverstripe3/public/abc/javascript/SyntaxHighlightedField.js
bonethug-0.0.16 skel/project_types/silverstripe3/public/abc/javascript/SyntaxHighlightedField.js
bonethug-0.0.15 skel/project_types/silverstripe3/public/abc/javascript/SyntaxHighlightedField.js
bonethug-0.0.14 skel/project_types/silverstripe3/public/abc/javascript/SyntaxHighlightedField.js
bonethug-0.0.13 skel/project_types/silverstripe3/public/abc/javascript/SyntaxHighlightedField.js
bonethug-0.0.12 skel/project_types/silverstripe3/public/abc/javascript/SyntaxHighlightedField.js
bonethug-0.0.11 skel/project_types/silverstripe3/public/abc/javascript/SyntaxHighlightedField.js
bonethug-0.0.10 skel/project_types/silverstripe3/public/abc/javascript/SyntaxHighlightedField.js
bonethug-0.0.7 skel/project_types/silverstripe3/public/abc/javascript/SyntaxHighlightedField.js
bonethug-0.0.6 skel/project_types/silverstripe3/public/abc/javascript/SyntaxHighlightedField.js
bonethug-0.0.5 skel/project_types/silverstripe3/public/abc/javascript/SyntaxHighlightedField.js