diff --git a/src/ajax.js b/src/ajax.js
index 1b9cff7..b4a0e87 100644
--- a/src/ajax.js
+++ b/src/ajax.js
@@ -810,10 +810,10 @@ function editFormResize(startstop, event)
else $('#page_taskedit textarea').height(f.height() - tmp.editformdiff);
}
-function mttTabSelected(el, indx)
+function mttTabSelected(id, indx)
{
- $(el.parentNode.parentNode).children('.mtt-tabs-selected').removeClass('mtt-tabs-selected');
- $(el.parentNode).addClass('mtt-tabs-selected');
+ $('#lists .mtt-tabs-selected').removeClass('mtt-tabs-selected');
+ $('#lists li.list-id-'+tabLists[indx].id).addClass('mtt-tabs-selected');
if(!tabLists[indx]) return;
if(indx != curList.i) {
$('#tasklist').html('');
@@ -843,7 +843,7 @@ function btnMenu(el)
if(w.css('display') == 'none')
{
oBtnMenu.h = [];
- $(w).find('li').each( function(i,o){
+ $(w).find('li').each( function(i,o){
if(o.onclick) {
oBtnMenu.h[i] = o.onclick;
$(o).bind("click2", o.onclick);
@@ -853,7 +853,7 @@ function btnMenu(el)
}
} );
var offset = $(el).offset();
- w.css({ position: 'absolute', top: offset.top+el.offsetHeight-1, left: offset.left , 'min-width': $(el).width() }).show();
+ w.css({ position: 'absolute', top: offset.top+el.offsetHeight-1, left: offset.left , 'min-width': $(el).width(), 'width':w.width() }).show();
$(document).bind("click", btnMenuClose);
}
else {
@@ -910,7 +910,7 @@ function loadLists(onInit, updAccess)
$.each(json.list, function(i,item){
item.i = i;
tabLists[i] = item;
- ti += '
@@ -200,6 +205,7 @@ $().ajaxStop( function(r,s) {$("#loading").fadeOut();} );
+
diff --git a/src/themes/default/style.css b/src/themes/default/style.css
index 5091072..3e50d94 100644
--- a/src/themes/default/style.css
+++ b/src/themes/default/style.css
@@ -34,6 +34,8 @@ a { color:#0000ff; }
.mtt-tabs li.mtt-tabs-button a { padding:6px 0px 0px 0px; }
.mtt-tabs li.mtt-tabs-button a span { width:21px; min-width:21px; display:block; background:url(images/arrdown.gif) no-repeat bottom; height:12px; }
.mtt-tabs li.mtt-tabs-button:hover a span { opacity:0.5; }
+.mtt-tabs.mtt-tabs-only-one li { display:none; }
+.mtt-tabs.mtt-tabs-only-one li.mtt-tabs-selected, .mtt-tabs.mtt-tabs-only-one li.mtt-tabs-button { display:block; }
#page_tasks.readonly li.mtt-tabs-button { display:none; }
*>.mtt-tabs li { width:auto; height:auto; }
*>.mtt-tabs a span { height:auto; width:auto; }
@@ -192,15 +194,17 @@ li.task-completed .task-note-block .task-note { text-decoration:line-through; }
.mtt-btnmenu-container {
overflow:hidden; z-index:100;
- background-color:#f9f9f9; border:1px solid #cccccc; padding:3px;
+ background-color:#f9f9f9; border:1px solid #cccccc; padding:2px;
-moz-box-shadow:1px 2px 5px rgba(0,0,0,0.5); -webkit-box-shadow:1px 2px 5px rgba(0,0,0,0.5); margin:0px 7px 7px 0px;
}
.mtt-btnmenu-container ul { list-style: none; padding:0; margin:0; }
-.mtt-btnmenu-container li { margin:1px 0px; padding:2px; cursor:pointer; color:#000; white-space:nowrap; }
+.mtt-btnmenu-container li { margin:1px 0px; padding:2px 3px; cursor:pointer; color:#000; white-space:nowrap; }
.mtt-btnmenu-container li:hover { background-color:#316AC5; color:white; }
.mtt-btnmenu-container li.mtt-need-list.mtt-disabled { color:#ACA899; }
-.mtt-btnmenu-delimiter { height:0px; border-top:1px solid #cccccc; margin:2px -1px 2px -1px }
+.mtt-btnmenu-container a { display:block; text-decoration:none; outline:none; color:#000; }
+.mtt-btnmenu-container li:hover a { color:white; }
.mtt-btnmenu-container.mtt-menu-has-images li { padding-left:18px; }
+.mtt-btnmenu-container li.mtt-btnmenu-delimiter { height:0px; line-height:0; border-bottom:1px solid #cccccc; margin:2px -1px; padding:0px; font-size:0px; }
li.mtt-item-checked .menu-icon { float:left; width:16px; height:16px; margin-left:-18px; background:url(images/icons.gif) -16px -16px; }
.mtt-btnmenu-container.mtt-menu-has-submenu li { padding-right:18px; }
li.mtt-menu-indicator .submenu-icon {