fix for #297, enabled throbber

This commit is contained in:
Tony Tam
2013-09-03 12:41:26 -07:00
parent 6c1de0b560
commit 73c89ba3f6
3 changed files with 4 additions and 1 deletions

1
dist/swagger-ui.js vendored
View File

@@ -1562,6 +1562,7 @@ helpers = this.merge(helpers, Handlebars.helpers); data = data || {};
} }
opts.responseContentType = $("div select[name=responseContentType]", $(this.el)).val(); opts.responseContentType = $("div select[name=responseContentType]", $(this.el)).val();
opts.requestContentType = $("div select[name=parameterContentType]", $(this.el)).val(); opts.requestContentType = $("div select[name=parameterContentType]", $(this.el)).val();
$(".response_throbber", $(this.el)).show();
return this.model["do"](map, opts, this.showCompleteStatus, this.showErrorStatus, this); return this.model["do"](map, opts, this.showCompleteStatus, this.showErrorStatus, this);
} }
}; };

File diff suppressed because one or more lines are too long

View File

@@ -96,6 +96,8 @@ class OperationView extends Backbone.View
opts.responseContentType = $("div select[name=responseContentType]", $(@el)).val() opts.responseContentType = $("div select[name=responseContentType]", $(@el)).val()
opts.requestContentType = $("div select[name=parameterContentType]", $(@el)).val() opts.requestContentType = $("div select[name=parameterContentType]", $(@el)).val()
$(".response_throbber", $(@el)).show()
@model.do(map, opts, @showCompleteStatus, @showErrorStatus, @) @model.do(map, opts, @showCompleteStatus, @showErrorStatus, @)
success: (response, parent) -> success: (response, parent) ->