diff --git a/src/mytinytodo.js b/src/mytinytodo.js index 49aeab9..5c82a3a 100644 --- a/src/mytinytodo.js +++ b/src/mytinytodo.js @@ -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(''); diff --git a/src/themes/default/style.css b/src/themes/default/style.css index 4066876..45d5f6c 100644 --- a/src/themes/default/style.css +++ b/src/themes/default/style.css @@ -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 */