Sha256: 19db3d81d27573aeb016a1172e3acd24f40f62cbabce58546074734a8d868162
Contents?: true
Size: 737 Bytes
Versions: 33
Compression:
Stored size: 737 Bytes
Contents
/* live_editor */ (function($) { var methods = { init: function(annotations) { $(this).on('change', methods.change); }, change: function(event) { var formlet = $(this).closest('.in-place-form'); formlet.hjq_formlet('submit'); } }; $.fn.hjq_live_editor = function( method ) { if ( methods[method] ) { return methods[method].apply( this, Array.prototype.slice.call( arguments, 1 )); } else if ( typeof method === 'object' || ! method ) { return methods.init.apply( this, arguments ); } else { $.error( 'Method ' + method + ' does not exist on hjq_live_editor' ); } }; })( jQuery );
Version data entries
33 entries across 33 versions & 1 rubygems