tabs are now identified by their parent's id plus their own
This commit is contained in:
parent
1e10f3acbc
commit
76f5450e41
2 changed files with 15 additions and 14 deletions
|
|
@ -52,9 +52,10 @@ function parsetabs(TABS,parent,sub) {
|
|||
|
||||
var title = tabData.title||tabId
|
||||
|
||||
$navtabs.append('<li><a href="#'+tabId+'">'+title+'</a></li>');
|
||||
var id = parent?parent.attr('id')+tabId:tabId
|
||||
$navtabs.append('<li><a href="#'+id+'">'+title+'</a></li>');
|
||||
|
||||
var $tabContent = $(document.createElement('div')).addClass('tab').attr('id',tabId);
|
||||
var $tabContent = $(document.createElement('div')).addClass('tab').attr('id',id);
|
||||
|
||||
|
||||
if (tabData.tabs) {
|
||||
|
|
@ -191,12 +192,12 @@ function parsewidgets(widgets,parent) {
|
|||
autopips[i]=range[key];
|
||||
i=i+1;
|
||||
}
|
||||
if (range.min<0<range.max){
|
||||
if (range.min<0 && 0<range.max){
|
||||
autopips.push(0);
|
||||
}
|
||||
autopips.push((range.max-range.min)/2);
|
||||
autopips.push((range.max-range.min)/4);
|
||||
autopips.push((range.max-range.min)*.75);
|
||||
//autopips.push((range.max-range.min)/2);
|
||||
//autopips.push((range.max-range.min)/4);
|
||||
//autopips.push((range.max-range.min)*.75);
|
||||
return autopips;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -73,8 +73,8 @@ a.on, a:active {
|
|||
}
|
||||
|
||||
.navigation {
|
||||
position:absolute;
|
||||
top:0;
|
||||
position:fixed;
|
||||
//top:0;
|
||||
left:0;
|
||||
right:0;
|
||||
height:55px;
|
||||
|
|
@ -83,15 +83,17 @@ a.on, a:active {
|
|||
font-variant:small-caps;
|
||||
padding:10px 5px;
|
||||
font-size:13px;
|
||||
box-shadow:0 0 0 1px #2A2A2A;
|
||||
|
||||
box-shadow:0;
|
||||
border-bottom:1px solid #2A2A2A;
|
||||
}
|
||||
|
||||
.main {
|
||||
box-shadow:0 0 8px 0 #111;
|
||||
top:0;
|
||||
position:fixed;
|
||||
z-index:3;
|
||||
white-space:nowrap;
|
||||
|
||||
border-bottom:0;
|
||||
overflow:hidden
|
||||
}
|
||||
.navigation ul {
|
||||
|
|
@ -164,13 +166,11 @@ a.on, a:active {
|
|||
.separator {
|
||||
width:20px;
|
||||
display:inline-block;
|
||||
background:linear-gradient(90deg,#222,#2A2A2A,#2A2A2A,#2A2A2A,#222);
|
||||
background:linear-gradient(90deg,#2A2A2A,#333,#333,#333,#2A2A2A);
|
||||
height:100%;
|
||||
position:relative;vertical-align:top;
|
||||
|
||||
}
|
||||
|
||||
|
||||
.widget {
|
||||
display:inline-block;
|
||||
background:#333;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue