From 330d1d5f3a21d9e79342802c0a9be5e399116a5a Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Thu, 23 Nov 2017 22:32:48 +0100 Subject: zelfoverhoor: Question numbering in edit form --- modules/zelfoverhoor/TODO.txt | 1 - modules/zelfoverhoor/docent.js | 19 +++++++++++++++++-- 2 files changed, 17 insertions(+), 3 deletions(-) delete mode 100644 modules/zelfoverhoor/TODO.txt (limited to 'modules') diff --git a/modules/zelfoverhoor/TODO.txt b/modules/zelfoverhoor/TODO.txt deleted file mode 100644 index 4997eb3..0000000 --- a/modules/zelfoverhoor/TODO.txt +++ /dev/null @@ -1 +0,0 @@ -- numbering of questions in docent edit view diff --git a/modules/zelfoverhoor/docent.js b/modules/zelfoverhoor/docent.js index 96ec38b..456ea2f 100644 --- a/modules/zelfoverhoor/docent.js +++ b/modules/zelfoverhoor/docent.js @@ -152,6 +152,14 @@ function closeQSetForm(){ currentlyEditing=null; } +function renumberQuestions(){ + var parent=document.getElementById("newquestions"); + var ch=parent.children,nc=ch.length; + for(var i=0;i