From 71f0695a7f0b81715b465cfd4083a0e149cbbf9e Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Wed, 12 May 2010 22:56:00 +0000 Subject: [PATCH] For the todo list, when we add or edit a task, the form does not disturb the object, we have added a z-index property --- html/access.php | 1 + html/js/todo_list.js | 5 +++-- include/template/dashboard.php | 18 +++++++++--------- release-note | 9 +++++++++ 4 files changed, 22 insertions(+), 11 deletions(-) diff --git a/html/access.php b/html/access.php index a63ac10f7..0d23c8d80 100644 --- a/html/access.php +++ b/html/access.php @@ -86,6 +86,7 @@ echo ''; echo '
'; echo JS_TODO; echo js_include('prototype.js'); +echo js_include('infobulle.js'); /* others report */ $cal=new Calendar(); diff --git a/html/js/todo_list.js b/html/js/todo_list.js index f9150f597..aa5d0ea11 100644 --- a/html/js/todo_list.js +++ b/html/js/todo_list.js @@ -57,15 +57,16 @@ function todo_list_show_success(req) { $('p_desc').value=getNodeText(tl_desc[0]); $('tl_id').value=getNodeText(tl_id[0]); $('add_todo_list').show(); - $('add').hide(); } catch (e) { alert(e.message);} } function todo_list_show_error(request_json) { alert ('failure'); } function add_todo() { + $('add_todo_list').style.top=posY+offsetY; + $('add_todo_list').style.left=posX+offsetX; + $('add_todo_list').show() - $('add').hide(); $('p_title').value=''; $('p_date').value=''; diff --git a/include/template/dashboard.php b/include/template/dashboard.php index a82b57efe..54af1317e 100644 --- a/include/template/dashboard.php +++ b/include/template/dashboard.php @@ -21,27 +21,27 @@ if ( isset($_REQUEST['save_todo_list'])) { } $todo=new Todo_List($cn); $array=$todo->load_all(); - - -echo '
'; -echo '
'._('Pense-Bête').''; -echo '