mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-02-16 00:19:50 -05:00
Moved popover navigation fix of #1603 from initialize's link handler to Router's closeCurrentView method.
This commit is contained in:
parent
c9b01af21c
commit
ea25224c1e
2 changed files with 1 additions and 2 deletions
|
@ -135,6 +135,7 @@ module.exports = class CocoRouter extends Backbone.Router
|
|||
window.currentModal?.hide?()
|
||||
return unless window.currentView?
|
||||
window.currentView.destroy()
|
||||
$('.popover').popover 'hide'
|
||||
|
||||
onGPlusAPILoaded: =>
|
||||
@renderLoginButtons()
|
||||
|
|
|
@ -51,8 +51,6 @@ handleNormalUrls = ->
|
|||
# Remove leading slashes and hash bangs (backward compatablility)
|
||||
url = href.replace(/^\//,'').replace('\#\!\/','')
|
||||
|
||||
$('.popover').popover 'hide'
|
||||
|
||||
# Instruct Backbone to trigger routing events
|
||||
app.router.navigate url, { trigger: true }
|
||||
|
||||
|
|
Loading…
Reference in a new issue