Index: lams_tool_laqa/web/admin/config.jsp =================================================================== diff -u -r80a367726b9e7607851be28429bda54d9b306159 -ra82189db31f6fb6dd4a25a50a688b2812e93ddce --- lams_tool_laqa/web/admin/config.jsp (.../config.jsp) (revision 80a367726b9e7607851be28429bda54d9b306159) +++ lams_tool_laqa/web/admin/config.jsp (.../config.jsp) (revision a82189db31f6fb6dd4a25a50a688b2812e93ddce) @@ -1,5 +1,4 @@ - + <%@ include file="/common/taglibs.jsp"%> @@ -128,6 +127,7 @@ categoryArray.splice(catMenu.selectedIndex-1, 1); setUpTripleMenu(); + disableExport(); } } } @@ -152,6 +152,7 @@ categoryArray[catMenu.selectedIndex-1].skills.splice(skillMenu.selectedIndex-1, 1); changeCategory(); + disableExport(); } } } @@ -176,6 +177,7 @@ categoryArray[catMenu.selectedIndex-1].skills[skillMenu.selectedIndex-1].questions.splice(qMenu.selectedIndex-1, 1); changeSkill(); + disableExport(); } } } @@ -204,6 +206,8 @@ function openDialog(inputType, isAdd, titleStr) { + disableExport(); + $("#catDialog").dialog( { buttons: @@ -227,7 +231,7 @@ title: titleStr } ); - + document.getElementById("inputText").focus(); } function handleDialogInput(inputType, isAdd) @@ -404,6 +408,33 @@ document.laqa11AdminForm.submit(); } + + function customSubmit(dispatch) + { + document.getElementById("dispatch").value = dispatch; + document.laqa11AdminForm.submit(); + } + + function disableExport() + { + msg = '' + document.getElementById("exportButton").href = "javascript:alert('" + msg + "');"; + } + + function importFile() + { + if (document.getElementById("importFile").value.length == 0) + { + alert(""); + } + else + { + if(confirm('')) + { + customSubmit("importWizard"); + } + } + } //--> @@ -425,7 +456,7 @@

- +

@@ -502,9 +533,17 @@ - - -
+ + +
+ +   + + +
+
+
+