Просмотр исходного кода

If hash not empty and remove unused file

Jessica Lawshe 7 лет назад
Родитель
Сommit
97fdf72346

+ 0 - 10
services/web/app/views/_scripts/active_tab.pug

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

+ 1 - 1
services/web/public/coffee/directives/bookmarkableTabset.coffee

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