Sha256: dfc0f0d3185941bba339c2d99b52a3dbca9aae894358cb7b78d570f1dea063a9

Contents?: true

Size: 993 Bytes

Versions: 28

Compression:

Stored size: 993 Bytes

Contents

/* a */
(function($) {
    var methods = {
        init: function(annotations) {
            this.on('click', methods.click);
        },

        click: function() {
            var that = $(this);
            var options = that.data('rapid').a.ajax_attrs;
            if(!options.message) options.message="Loading...";
            var hobo_options = {type: 'GET', attrs: options};
            var roptions = that.hjq('buildRequestData', hobo_options);
            that.hjq("changeLocationAjax", that.attr('href'), roptions, hobo_options);
            return false;
        }
    };
    $.fn.hjq_a = 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_form' );
        }
    };
})( jQuery );

Version data entries

28 entries across 28 versions & 1 rubygems

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