summaryrefslogtreecommitdiff
path: root/js/liststudy.js
diff options
context:
space:
mode:
authorAlex AUVOLAT <alexis211@gmail.com>2013-08-12 21:17:29 +0200
committerAlex AUVOLAT <alexis211@gmail.com>2013-08-12 21:17:29 +0200
commit8c24f8d84c338de8320596c5a9b8da72c2541080 (patch)
tree304af41ab28375dde5cd21aadaa7ed7d76a4f14e /js/liststudy.js
parentfac8f09c3bf40aaea5513c696af562cd9f728ea6 (diff)
downloadBits-8c24f8d84c338de8320596c5a9b8da72c2541080.tar.gz
Bits-8c24f8d84c338de8320596c5a9b8da72c2541080.zip
Small presentation changes.
Diffstat (limited to 'js/liststudy.js')
-rw-r--r--js/liststudy.js4
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();