New javascript function : error_message which displays a error message into a div
This commit is contained in:
parent
7e78c8c9f9
commit
495ca05e2f
3 changed files with 43 additions and 2 deletions
|
|
@ -1967,7 +1967,17 @@ function remove_bookmark() {
|
|||
}
|
||||
);
|
||||
} catch (e) {
|
||||
info_message(e.getMessage);
|
||||
error_message(e.getMessage);
|
||||
}
|
||||
|
||||
}
|
||||
/**
|
||||
*@brief display the error message into the div error_content_div (included into error_div)
|
||||
*@param message message to display
|
||||
*@note there is no protection
|
||||
*/
|
||||
function error_message(message)
|
||||
{
|
||||
$('error_content_div').innerHTML=message;
|
||||
$('error_div').style.visibility='visible';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue