projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76bc0ad
)
js: tab-widget cookie ignorieren wenn url hash vorhanden
author
Sven Schöling
<s.schoeling@linet-services.de>
Tue, 19 Jul 2016 12:03:50 +0000
(14:03 +0200)
committer
Sven Schöling
<s.schoeling@linet-services.de>
Wed, 14 Feb 2018 12:58:23 +0000
(13:58 +0100)
Unter bestimmten umständen funktioniert das direkte Springen auf einen
Tab sonst nicht.
js/kivi.js
patch
|
blob
|
history
diff --git
a/js/kivi.js
b/js/kivi.js
index
3ee73a7
..
f194b81
100644
(file)
--- a/
js/kivi.js
+++ b/
js/kivi.js
@@
-252,7
+252,10
@@
namespace("kivi", function(ns) {
if (elementId) {
var cookieName = 'jquery_ui_tab_'+ elementId;
- tabsParams.active = $.cookie(cookieName);
+ if (!window.location.hash) {
+ // only activate if there's no hash to overwrite it
+ tabsParams.active = $.cookie(cookieName);
+ }
tabsParams.activate = function(event, ui) {
var i = ui.newTab.parent().children().index(ui.newTab);
$.cookie(cookieName, i);