From 8c24f8d84c338de8320596c5a9b8da72c2541080 Mon Sep 17 00:00:00 2001 From: Alex AUVOLAT Date: Mon, 12 Aug 2013 21:17:29 +0200 Subject: Small presentation changes. --- js/liststudy.js | 4 ++-- js/reviewdesu.js | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'js') 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 += '' + note + ''; + + (items[i].info.length) + '">' + note.replace(/\|\|/g, '
') + ''; } } html += ''; @@ -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(); diff --git a/js/reviewdesu.js b/js/reviewdesu.js index 6750b4b..d93bda4 100644 --- a/js/reviewdesu.js +++ b/js/reviewdesu.js @@ -96,7 +96,8 @@ function show_answer() { html = '

Question ' + question_nb + ' of ' + total + '

'; html += '
'; html += '
' + question.answer + '
'; - html += '
' + (notes[question.key] || 'click to add note...') + '
'; + html += '
' + + (notes[question.key] || 'click to add note...').replace(/\|\|/g, '
') + '
'; html += '

'; html += ''; html += '

'; @@ -113,10 +114,10 @@ function answer_question(a) { function edit_note() { var idd = question.key; - 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]; - $("notebox").innerHTML = (notes[idd] || 'click to add note...'); + $("notebox").innerHTML = (notes[idd] || 'click to add note...').replace(/\|\|/g, '
'); new Ajax.Request('index.php?p=brresults-study-' + batchid, { method: 'post', -- cgit v1.2.3