* visibility of add task inputbox now is controlled by readonly class only

This commit is contained in:
Max Pozdeev 2010-12-14 22:26:30 +03:00
parent 9eb9fb19ad
commit 30c04f33e7
2 changed files with 1 additions and 4 deletions

View file

@ -1381,13 +1381,10 @@ function liveSearchToggle(toSearch, dontLoad)
{
if(toSearch)
{
if(flag.readOnly) $('#htab_newtask').hide();
$('#search').focus();
}
else
{
if(!flag.readOnly) $('#htab_newtask').show();
if($('#search').val() != '') {
filter.search = '';
$('#search').val('');

View file

@ -123,7 +123,7 @@ a { color:#0000ff; cursor:pointer; text-decoration:underline; }
#newtask_adv span { background:url(images/buttons.png) 0 -48px no-repeat; }
#newtask_adv:hover span { background-position:-16px -48px; }
#page_tasks.show-all-tasks #htab_newtask { display:none; }
#page_tasks.show-all-tasks #htab_newtask, #page_tasks.readonly #htab_newtask { display:none; }
/* Live Search */