Sha256: c6edaed4dc39ca94b3918504ac82603b5dbe3addcf13bd3e49edac0e32f70e19

Contents?: true

Size: 602 Bytes

Versions: 33

Compression:

Stored size: 602 Bytes

Contents

/* hot-input */
(function($) {
    $.fn.hjq_hot_input = function(annotations) {
        this.on(annotations.events, annotations.selector, function (event) {
            var that=$(this);
            var form=that.parents('form');
            var roptions=that.hjq('buildRequest', {type: annotations.method, attrs: annotations.ajax_attrs});
            var data = form.find(":input").not(form.find(".formlet :input")).serialize();
            roptions.data = $.param(roptions.data) + "&" + data;
            $.ajax(annotations.path, roptions);

            return false;
        });
    }
})( jQuery );

Version data entries

33 entries across 33 versions & 1 rubygems

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