Skip to content
Snippets Groups Projects
Commit aaf49c9b authored by Pierre-antoine Comby's avatar Pierre-antoine Comby
Browse files

balance on a second line

parent 6ea59a46
No related branches found
No related tags found
1 merge request!76Transfer front
......@@ -81,14 +81,13 @@ function displayNote(note, alias, user_note_field=null, profile_pic_field=null)
if (!note.display_image) {
note.display_image = '/media/pic/default.png';
}
let img = note.display_image;
if (alias !== note.name)
alias += " (aka. " + note.name + ")";
if (user_note_field !== null)
$("#" + user_note_field).addClass(displayStyle(note.balance));
$("#" + user_note_field).text(alias + (note.balance == null ? "" : (" : " + pretty_money(note.balance))));
$("#" + user_note_field).text(alias + (note.balance == null ? "" : (":\n" + pretty_money(note.balance))));
if (profile_pic_field != null){
$("#" + profile_pic_field).attr('src', img);
$("#" + profile_pic_field).click(function(){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment