mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
If hash not empty and remove unused file
This commit is contained in:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user