[MGNLSTK-829] jquery-tabtree.js -> options -> defaultSelected with no effect Created: 30/Jan/12  Updated: 18/Feb/16  Resolved: 18/Feb/16

Status: Closed
Project: Magnolia Standard Templating Kit (closed)
Component/s: themepop
Affects Version/s: 1.4.6
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Dan Glanzmann Assignee: Unassigned
Resolution: Won't Do Votes: 3
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Firefox 7.0.1, IE 8, ...


Template:
Acceptance criteria:
Empty
Date of First Response:

 Description   

we need to select a specific tab at page load.

to do this we tried the initialization option: defaultSelected
and set this to 1 ore 2 instead of 0 with no effects...

Test 1:

/templating-kit/themes/pop/js/init-behaviour.js :
...
function createTabs(){

$('ol.text-box-toc, ol.toc-box-toc')
.each(function(){
$(this)
.tabtree(

{activeButtonClass: 'on', defaultSelected: 2}

)
.tabChangeAddon();
});
}

Test 2:

/templating-kit/js/all/jquery-tabtree.js :
...
$.widget('ui.tabtree', {
options:

{ ... defaultSelected: 2, ... }

,



 Comments   
Comment by Dan Glanzmann [ 07/Mar/12 ]

Resolved:
/templating-kit/paragraphs/teasers/horizontalTabbed.ftl:

list tabItems?children as item
if item_index == 0
assign classOn = 'class="on"'
else
assign classOn = ""
/#if

I removed the class="on" and now the defaultSelected works correctly using JavaScript.

Comment by Michael Mühlebach [ 18/Feb/16 ]

Given the thousands of other issues we have open that are more highly requested, we won't be able to address this issue in the foreseeable future. Instead we will focus on issues with a higher impact, and more votes.
Thanks for taking the time to raise this issue. As you are no doubt aware this issue has been on our backlog for some time now with very little movement.
I'm going to close this to set expectations so the issue doesn't stay open for years with few updates. If the issue is still relevant please feel free to reopen it or create a new issue.

Generated at Mon Feb 12 13:39:24 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.