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

Version Path
hobo_jquery_ui-2.2.6 vendor/assets/javascripts/hobo-jquery-ui/hjq-accordion.js
hobo_jquery_ui-2.2.5 vendor/assets/javascripts/hobo-jquery-ui/hjq-accordion.js
hobo_jquery_ui-2.2.4 vendor/assets/javascripts/hobo-jquery-ui/hjq-accordion.js
hobo_jquery_ui-2.2.3 vendor/assets/javascripts/hobo-jquery-ui/hjq-accordion.js
hobo_jquery_ui-2.2.2 vendor/assets/javascripts/hobo-jquery-ui/hjq-accordion.js
hobo_jquery_ui-2.2.1 vendor/assets/javascripts/hobo-jquery-ui/hjq-accordion.js
hobo_jquery_ui-2.2.0 vendor/assets/javascripts/hobo-jquery-ui/hjq-accordion.js
hobo_jquery_ui-2.1.2 vendor/assets/javascripts/hobo-jquery-ui/hjq-accordion.js
hobo_jquery_ui-2.1.1 vendor/assets/javascripts/hobo-jquery-ui/hjq-accordion.js
hobo_jquery_ui-2.1.0 vendor/assets/javascripts/hobo-jquery-ui/hjq-accordion.js
hobo_jquery_ui-2.1.0.pre4 vendor/assets/javascripts/hobo-jquery-ui/hjq-accordion.js
hobo_jquery_ui-2.1.0.pre3 vendor/assets/javascripts/hobo-jquery-ui/hjq-accordion.js
hobo_jquery_ui-2.1.0.pre2 vendor/assets/javascripts/hobo-jquery-ui/hjq-accordion.js
hobo_jquery_ui-2.1.0.pre1 vendor/assets/javascripts/hobo-jquery-ui/hjq-accordion.js
hobo_jquery_ui-2.0.1 vendor/assets/javascripts/hobo-jquery-ui/hjq-accordion.js
hobo_jquery_ui-2.0.0 vendor/assets/javascripts/hobo-jquery-ui/hjq-accordion.js
hobo_jquery_ui-2.0.0.pre10 vendor/assets/javascripts/hobo-jquery-ui/hjq-accordion.js
hobo_jquery_ui-2.0.0.pre9 vendor/assets/javascripts/hobo-jquery-ui/hjq-accordion.js
hobo_jquery_ui-2.0.0.pre8 vendor/assets/javascripts/hobo-jquery-ui/hjq-accordion.js
hobo_jquery_ui-2.0.0.pre7 vendor/assets/javascripts/hobo-jquery-ui/hjq-accordion.js