mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-24 08:13:38 +00:00
Merge "Fix routing after repeatedly opening/closing"
This commit is contained in:
commit
e34ffbe40f
|
@ -917,8 +917,8 @@
|
|||
|
||||
// handle empty hashes, and anchor links (page sections)
|
||||
this.router.addRoute( /^[^/]*$/, function () {
|
||||
comingFromHashChange = true;
|
||||
if ( this.isOpen ) {
|
||||
comingFromHashChange = true;
|
||||
document.title = this.createDocumentTitle( null );
|
||||
if ( this.ui ) {
|
||||
// FIXME triggers mmv-close event, which calls viewer.close()
|
||||
|
|
Loading…
Reference in a new issue