mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-05 23:53:52 +00:00
If hash not empty and remove unused file
This commit is contained in:
parent
1424ae686a
commit
97fdf72346
2 changed files with 1 additions and 11 deletions
|
@ -1,10 +0,0 @@
|
|||
//- script(type="text/javascript").
|
||||
//- if (window.location.hash) {
|
||||
//- setTimeout(function(){
|
||||
//- tabID = window.location.hash.replace(/#!?/, '')
|
||||
//- tab = document.getElementById(tabID)
|
||||
//- if (tab && typeof(tab) != 'undefined' && tab != null) {
|
||||
//- tab.setAttribute('active', true)
|
||||
//- }
|
||||
//- }, 500);
|
||||
//- }
|
|
@ -7,7 +7,7 @@ define [
|
|||
link: (scope, el, attrs, tabset) ->
|
||||
scope.$applyAsync () ->
|
||||
hash = $location.hash()
|
||||
if hash?
|
||||
if hash? and hash != ""
|
||||
matchingTab = _.find tabset.tabs, (tab) ->
|
||||
tab.bookmarkableTabId == hash
|
||||
if matchingTab?
|
||||
|
|
Loading…
Reference in a new issue