If hash not empty and remove unused file

This commit is contained in:
Jessica Lawshe 2018-10-15 14:53:52 -05:00
parent 1424ae686a
commit 97fdf72346
2 changed files with 1 additions and 11 deletions

View file

@ -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);
//- }

View file

@ -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?