From aaf49c9b99a9275127873de5fb76ac56f9d4928e Mon Sep 17 00:00:00 2001 From: Pierre-antoine Comby Date: Sat, 28 Mar 2020 21:30:55 +0100 Subject: [PATCH] balance on a second line --- static/js/base.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/static/js/base.js b/static/js/base.js index 61372c76..86e090f9 100644 --- a/static/js/base.js +++ b/static/js/base.js @@ -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(){