vendor/assets/javascripts/hobo-jquery/hjq.js in hobo_jquery-2.1.0 vs vendor/assets/javascripts/hobo-jquery/hjq.js in hobo_jquery-2.1.1

- old
+ new

@@ -276,10 +276,10 @@ buildRequestCallbacks: function(result, o) { var that = this; if (!o.attrs) o.attrs = {}; if (!o.extra_callbacks) o.extra_callbacks = {}; - var spinner = this.hjq_spinner(o.attrs, "Saving..."); + var spinner = (result == false) ? false : this.hjq_spinner(o.attrs, "Saving..."); var success_dfd = jQuery.Deferred(); if(o.attrs.success) success_dfd.done(methods.createFunction.call(that, o.attrs.success)); if(o.extra_callbacks.success) success_dfd.done(methods.createFunction.call(that, o.extra_callbacks.success)); success_dfd.done(function() {