Fix Bug with the todo list, in the "Accueil" if there several line in a todo list, you cannot modify it
This commit is contained in:
parent
5fd2185d2a
commit
09749737c6
2 changed files with 4 additions and 3 deletions
|
|
@ -46,7 +46,7 @@ function todo_list_show_success(request,json) {
|
|||
$('p_title').value=answer.tl_title;
|
||||
|
||||
$('p_date').value=answer.tl_date;
|
||||
$('p_desc').value=answer.tl_desc;
|
||||
$('p_desc').value=decodeURI(answer.tl_desc);
|
||||
$('tl_id').value=answer.tl_id;
|
||||
$('add_todo_list').show();
|
||||
$('add').hide();
|
||||
|
|
@ -78,4 +78,4 @@ function todo_list_remove(p_ctl) {
|
|||
);
|
||||
return false;
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -164,11 +164,12 @@ from todo_list where tl_id=$1";
|
|||
|
||||
}
|
||||
public function toJSON() {
|
||||
|
||||
$r='';
|
||||
$r.='{';
|
||||
$r.='"tl_id":"'.$this->tl_id.'",';
|
||||
$r.='"tl_title":"'.$this->tl_title.'",';
|
||||
$r.='"tl_desc":"'.$this->tl_desc.'",';
|
||||
$r.='"tl_desc":"'.urlencode($this->tl_desc).'",';
|
||||
$r.='"tl_date":"'.$this->tl_date.'"';
|
||||
$r.='}';
|
||||
return $r;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue