Sha256: 9480176d833c9f8103cd77842db57452281039ae5b2200114982505457ead628
Contents?: true
Size: 848 Bytes
Versions: 33
Compression:
Stored size: 848 Bytes
Contents
/* accordion & accordion-collection */ (function($) { $.fn.hjq_accordion = function(annotations) { var stop = false; if(annotations.sortable) { this.on("click", "div.hjq-accordion-element > h3", function(event) { if(stop) { event.stopImmediatePropagation(); event.preventDefault(); stop = false; } }); } var that=this.accordion($.extend({header: "> div.hjq-accordion-element > h3"}, this.hjq('getOptions', annotations))); if (annotations.sortable) { that.sortable({axis: "y", handle: "h3", stop: function() { stop = true; } }); } }; })( jQuery );
Version data entries
33 entries across 33 versions & 1 rubygems