diff options
author | Alex AUVOLAT <alexis211@gmail.com> | 2013-08-12 21:17:29 +0200 |
---|---|---|
committer | Alex AUVOLAT <alexis211@gmail.com> | 2013-08-12 21:17:29 +0200 |
commit | 8c24f8d84c338de8320596c5a9b8da72c2541080 (patch) | |
tree | 304af41ab28375dde5cd21aadaa7ed7d76a4f14e /js/liststudy.js | |
parent | fac8f09c3bf40aaea5513c696af562cd9f728ea6 (diff) | |
download | Bits-8c24f8d84c338de8320596c5a9b8da72c2541080.tar.gz Bits-8c24f8d84c338de8320596c5a9b8da72c2541080.zip |
Small presentation changes.
Diffstat (limited to 'js/liststudy.js')
-rw-r--r-- | js/liststudy.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/liststudy.js b/js/liststudy.js index 5ff6aef..ab6eede 100644 --- a/js/liststudy.js +++ b/js/liststudy.js @@ -88,7 +88,7 @@ function show_contents_table() { if (notes[items[i].info[0]]) { var note = notes[items[i].info[0]]; html += '<tr><td class="invisible_td"></td><td class="study_note_td" colspan="' - + (items[i].info.length) + '">' + note + '</td></tr>'; + + (items[i].info.length) + '">' + note.replace(/\|\|/g, '<br/>') + '</td></tr>'; } } html += '</table>'; @@ -135,7 +135,7 @@ function show_reviews_table() { function edit_note(id) { var idd = items[id].info[0]; - var note = prompt("Add note for item: ", notes[idd] || ''); + var note = prompt("Add note for item:\n(you might want to add a long note, so I'm adding this text to make the prompt box bigger)", notes[idd] || ''); if (note != null) notes[idd] = note; if (notes[idd] == '') delete notes[idd]; show_contents_table(); |