be able to link to innertab
This commit is contained in:
parent
25db427349
commit
07d2fe9779
|
@ -163,7 +163,18 @@ $(document).ready(function() {
|
|||
//When page loads...
|
||||
$(".tab_content").hide(); //Hide all content
|
||||
$("ul.tabsInnerRight li:first").addClass("active").show(); //Activate first tab
|
||||
$(".tab_content:first").show(); //Show first tab content
|
||||
var State = History.getState();
|
||||
// console.log(State);
|
||||
var queryData = QueryStringToJSON(State.hash); //FIXME: ideally this would go into global doState function
|
||||
if (queryData.hasOwnProperty("innerTab")) {
|
||||
if ($('#' + queryData.innerTab).length > 0) {
|
||||
$('#' + queryData.innerTab).show();
|
||||
} else {
|
||||
$('.tab_content:first').show();
|
||||
}
|
||||
} else {
|
||||
$(".tab_content:first").show(); //Show first tab content
|
||||
}
|
||||
//On Click Event
|
||||
$("ul.tabsInnerRight li").click(function() {
|
||||
$("ul.tabsInnerRight li").removeClass("active"); //Remove any "active" class
|
||||
|
|
Loading…
Reference in New Issue
Block a user