Browse Source

fix for #297, enabled throbber

bubble
Tony Tam 11 years ago
parent
commit
73c89ba3f6
3 changed files with 4 additions and 1 deletions
  1. +1
    -0
      dist/swagger-ui.js
  2. +1
    -1
      dist/swagger-ui.min.js
  3. +2
    -0
      src/main/coffeescript/view/OperationView.coffee

+ 1
- 0
dist/swagger-ui.js View File

@@ -1562,6 +1562,7 @@ helpers = this.merge(helpers, Handlebars.helpers); data = data || {};
}
opts.responseContentType = $("div select[name=responseContentType]", $(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);
}
};


+ 1
- 1
dist/swagger-ui.min.js
File diff suppressed because it is too large
View File


+ 2
- 0
src/main/coffeescript/view/OperationView.coffee View File

@@ -96,6 +96,8 @@ class OperationView extends Backbone.View
opts.responseContentType = $("div select[name=responseContentType]", $(@el)).val()
opts.requestContentType = $("div select[name=parameterContentType]", $(@el)).val()

$(".response_throbber", $(@el)).show()

@model.do(map, opts, @showCompleteStatus, @showErrorStatus, @)

success: (response, parent) ->


Loading…
Cancel
Save