app/assets/javascripts/thin_man.js in thin_man-0.15.2 vs app/assets/javascripts/thin_man.js in thin_man-0.15.3
- old
+ new
@@ -23,10 +23,11 @@
this.progress_color = jq_obj.data('progress-color');
this.progress_target = $(jq_obj.data('progress-target'));
this.custom_progress = typeof(jq_obj.data('custom-progress')) != 'undefined';
if(this.progress_target.length == 0){
this.progress_target = this.trigger
+ this.trigger_is_progress_target = true
}
this.insert_method = this.getInsertMethod();
var ajax_submission = this;
this.ajax_options = {
url: ajax_submission.getAjaxUrl(),
@@ -151,10 +152,10 @@
},
ajaxComplete: function(jqXHR) {
this.showTrigger();
if(this.progress_indicator){
this.progress_indicator.stop();
- } else {
+ } else if(!this.trigger_is_progress_target){
this.progress_target.remove();
}
try{
var response_data = JSON.parse(jqXHR.responseText)
} catch(err) {