From ee43bcf8ab41fe82607730180776c7ccee7866b2 Mon Sep 17 00:00:00 2001 From: Toni Dahl Date: Mon, 27 Jun 2016 13:15:34 +0300 Subject: [PATCH] Re-render AuthButtonView after 'authorize' button click. --- src/main/javascript/view/AuthButtonView.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/javascript/view/AuthButtonView.js b/src/main/javascript/view/AuthButtonView.js index 6572c487..2c471027 100644 --- a/src/main/javascript/view/AuthButtonView.js +++ b/src/main/javascript/view/AuthButtonView.js @@ -39,6 +39,10 @@ SwaggerUi.Views.AuthButtonView = Backbone.View.extend({ content: this.$authEl }; + // The content of the popup is removed and all events unbound after clicking the 'Cancel' button of the popup. + // We'll have to re-render the contents before creating a new popup view. + this.render(); + this.popup = new SwaggerUi.Views.PopupView({model: authsModel}); this.popup.render(); },