From a6763f3c7c9b8359c545a927a1b2ed266f324cab Mon Sep 17 00:00:00 2001 From: Gabriel Schulhof Date: Wed, 28 Nov 2012 11:40:07 +0200 Subject: [PATCH] Popup: Return from the dialogHashKey state when the back link takes the form of a link to the page that opened the dialog. --- js/widgets/popup.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/widgets/popup.js b/js/widgets/popup.js index 4595a635c72..b71e0db323f 100644 --- a/js/widgets/popup.js +++ b/js/widgets/popup.js @@ -720,7 +720,8 @@ define( [ "jquery", this.options.container.unbind( this.options.closeEvents ); this._close( true ); } else { - this._close(); + this.close(); + e.preventDefault(); } return;