Sha256: b38a1c6caf4880244a16791eb45cbddfc84a7a2b5dedd750cf31a48c11e216c3

Contents?: true

Size: 572 Bytes

Versions: 19

Compression:

Stored size: 572 Bytes

Contents

/* dialog */
(function($) {
    var methods = {
        init: function(annotations) {
          this.modal({show: !!this.data('show')});
        }
    };

    $.fn.hjq_modal = 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_dialog' );
        }
    };

})( jQuery );

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
hobo_bootstrap_ui-2.2.6 vendor/assets/javascripts/hobo-bootstrap-ui/hjq-modal.js
hobo_bootstrap_ui-2.2.5 vendor/assets/javascripts/hobo-bootstrap-ui/hjq-modal.js
hobo_bootstrap_ui-2.2.4 vendor/assets/javascripts/hobo-bootstrap-ui/hjq-modal.js
hobo_bootstrap_ui-2.2.3 vendor/assets/javascripts/hobo-bootstrap-ui/hjq-modal.js
hobo_bootstrap_ui-2.2.2 vendor/assets/javascripts/hobo-bootstrap-ui/hjq-modal.js
hobo_bootstrap_ui-2.2.0 vendor/assets/javascripts/hobo-bootstrap-ui/hjq-modal.js
hobo_bootstrap_ui-2.1.1 vendor/assets/javascripts/hobo-bootstrap-ui/hjq-modal.js
hobo_bootstrap_ui-2.1.0 vendor/assets/javascripts/hobo-bootstrap-ui/hjq-modal.js
hobo_bootstrap_ui-2.1.0.pre4 vendor/assets/javascripts/hobo-bootstrap-ui/hjq-modal.js
hobo_bootstrap_ui-2.1.0.pre3 vendor/assets/javascripts/hobo-bootstrap-ui/hjq-modal.js
hobo_bootstrap_ui-2.1.0.pre2 vendor/assets/javascripts/hobo-bootstrap-ui/hjq-modal.js
hobo_bootstrap_ui-2.1.0.pre1 vendor/assets/javascripts/hobo-bootstrap-ui/hjq-modal.js
hobo_bootstrap_ui-2.0.1 vendor/assets/javascripts/hobo-bootstrap-ui/hjq-modal.js
hobo_bootstrap_ui-2.0.0 vendor/assets/javascripts/hobo-bootstrap-ui/hjq-modal.js
hobo_bootstrap_ui-2.0.0.pre10 vendor/assets/javascripts/hobo-bootstrap-ui/hjq-modal.js
hobo_bootstrap_ui-2.0.0.pre9 vendor/assets/javascripts/hobo-bootstrap-ui/hjq-modal.js
hobo_bootstrap_ui-2.0.0.pre8 vendor/assets/javascripts/hobo-bootstrap-ui/hjq-modal.js
hobo_bootstrap_ui-2.0.0.pre7 vendor/assets/javascripts/hobo-bootstrap-ui/hjq-modal.js
hobo_bootstrap_ui-2.0.0.pre6 vendor/assets/javascripts/hobo-bootstrap-ui/hjq-modal.js