(surveyList);
+ SurveyQuestion item = rList.get(itemIdx);
+ if (item != null) {
+ populateItemToForm(-1, item, itemForm, request);
+ itemForm.setItemIndex(null);
+ }
+
+ if (itemForm.getItemType() == SurveyConstants.QUESTION_TYPE_TEXT_ENTRY) {
+ return mapping.findForward(SurveyConstants.FORWARD_OPEN_QUESTION);
+ } else {
+ return mapping.findForward(SurveyConstants.FORWARD_CHOICE_QUESTION);
+ }
+ }
+
/**
* This method will get necessary information from survey item form and save or update into HttpSession
* SurveyItemList. Notice, this save is not persist them into database, just save HttpSession
Index: lams_tool_survey/web/includes/images/page_copy.png
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_survey/web/includes/images/page_copy.png,v
diff -u
Binary files differ
Index: lams_tool_survey/web/pages/authoring/basic.jsp
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_survey/web/pages/authoring/basic.jsp,v
diff -u -r1.13 -r1.14
--- lams_tool_survey/web/pages/authoring/basic.jsp 4 Jan 2012 17:19:38 -0000 1.13
+++ lams_tool_survey/web/pages/authoring/basic.jsp 28 Feb 2012 08:33:40 -0000 1.14
@@ -38,10 +38,17 @@
function editItem(idx,itemType,sessionMapID,contentFolderID){
- var reqIDVar = new Date();
+ var reqIDVar = new Date();
var url = "" + idx +"&itemType="+itemType+"&reqID="+reqIDVar.getTime()+"&sessionMapID="+sessionMapID+"&contentFolderID="+contentFolderID;
showMessage(url);
}
+
+ function copyItem(idx,itemType,sessionMapID,contentFolderID){
+ var reqIDVar = new Date();
+ var url = "" + idx +"&itemType="+itemType+"&reqID="+reqIDVar.getTime()+"&sessionMapID="+sessionMapID+"&contentFolderID="+contentFolderID;
+ showMessage(url);
+ }
+
//The panel of survey list panel
var surveyListTargetDiv = "surveyListArea";
function deleteItem(idx,sessionMapID){
Index: lams_tool_survey/web/pages/authoring/parts/itemlist.jsp
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_survey/web/pages/authoring/parts/itemlist.jsp,v
diff -u -r1.9 -r1.10
--- lams_tool_survey/web/pages/authoring/parts/itemlist.jsp 8 Nov 2006 06:11:30 -0000 1.9
+++ lams_tool_survey/web/pages/authoring/parts/itemlist.jsp 28 Feb 2012 08:33:40 -0000 1.10
@@ -73,6 +73,14 @@
+ "
+ onclick="copyItem(${status.index},${question.type},'${sessionMapID}','${contentFolderID}')">
+
+ |
+
+
"
|