Index: lams_tool_sbmt/web/learner/sbmtlearner.jsp =================================================================== diff -u -rc369f2218927f5a0f0288f827a02f6ca33531f02 -r81f928586161dd03042b6353f68c7d7b8279ccde --- lams_tool_sbmt/web/learner/sbmtlearner.jsp (.../sbmtlearner.jsp) (revision c369f2218927f5a0f0288f827a02f6ca33531f02) +++ lams_tool_sbmt/web/learner/sbmtlearner.jsp (.../sbmtlearner.jsp) (revision 81f928586161dd03042b6353f68c7d7b8279ccde) @@ -1,5 +1,6 @@ -<%@include file="/common/taglibs.jsp"%> +<%@ include file="/common/taglibs.jsp"%> + <%@ page import="org.lamsfoundation.lams.util.Configuration" %> <%@ page import="org.lamsfoundation.lams.util.ConfigurationKeys" %> <%=Configuration.get(ConfigurationKeys.UPLOAD_FILE_MAX_SIZE)%> @@ -9,537 +10,536 @@ - - - - <fmt:message key="tool.display.name" /> - <%@ include file="/common/header.jsp"%> - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + - //enforce min files upload limit - - if (uploadedFilesNumber < ${sessionMap.minLimitUploadNumber}) { - if (${sessionMap.mode eq 'author'}) { - alert('' + - '\n'); - } else { - alert(''); - return false; - } - } - +
+
+ +
- //let user confirm zero files upload - if (uploadedFilesNumber == 0) { - if (${sessionMap.lockOnFinish}) { - if (!confirm("")) { - return false; - } - } else { - if (!confirm("")) { - return false; - } - } - } +
+ + + + + + + + - disableButtons(); - location.href = tUrl; - } - - function clearFileError(errDivId) { - if ( ! errDivId || errDivId.length == 0 ) { - errDivId = 'file-error-msg'; - } - var errDiv = $('#'+errDivId); - errDiv.empty(); - errDiv.css( "display", "none" ); - } - - function showFileError(error, errDivId) { - if ( ! errDivId || errDivId.length == 0 ) { - errDivId = 'file-error-msg'; - } - var errDiv = $('#'+errDivId); - if ( errDiv.length > 0 ) { - errDiv.append(error); - errDiv.css( "display", "block" ); - } else { - alert(error); - } - } - - function validateFileUpload() { - var valid = true; + + + + + + + + + - // check description - clearFileError("desc-error-msg"); - if ( $('#description').val().trim().length == 0 ) { - var requiredMsg = ''; - showFileError(requiredMsg, "desc-error-msg"); - valid = false; - } - - if ( valid ) { - disableButtons(); - } - return valid; - } - - function disableButtons() { - // do not disable the file button or the file will be missing on the upload. - $('.btn-disable-on-submit').prop('disabled', true); - $('a.btn-disable-on-submit').hide(); // links must be hidden, cannot be disabled - - // show the waiting area during the upload - var div = document.getElementById("attachmentArea_Busy"); - if(div != null){ - div.style.display = ''; - } - } - - function deleteLearnerFile(detailId, filename) { - var msg = ''; - msg = msg.replace('{0}', filename); - var answer = confirm(msg); - if (answer) { - $.ajax({ - url: '', - data: 'detailId=' + detailId, - success: function () { - document.location.href = "learning/${sessionMap.mode}.do?toolSessionID=${sessionMap.toolSessionID}"; - }, - error: function(error){ - alert("readyState: "+xhr.readyState+"\nstatus: "+xhr.status); - alert("responseText: "+xhr.responseText); - } - }); - } - } - - - + + + + + : + + +    + +   + + + + + : + + +   + + + + + : + + +   + + + + + + + + - -
- -
+
+
+
- - - - - - - - - - - - - - - - +
+ +
- - - - - - - - - +
+ + + + + + - - - - - - - - - - - - - - - - - - - + +
+
+
+ +
- - - - - - - - -
-
- -
- -
-
- - -
-
- - -
- - - -
- -

*

- - -
- -
-
- -
-
-
- - - -
-
- - - - -
- -
-
+
+ - -
- : -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- ) - - - - - - - - - "> - - - - " class="btn btn-default btn-disable-on-submit pull-right"> - - -
- - -
-   - -
-
- : - -
- : - -
- - - - - - - - -
-
- - - +
+
- -
-
- -
-
-
- -
+ +
+ + + +
-
- - -

- - -

-
- -

- -

-
-
-
+
+ +   + +
- - - -
-
-
- - + +
+ +
+
- - - -
+ + +
+ + +
+ +
+
+ + +
+
+
+ + + +   + +
+ +
+ +
+ + +
+ + + +   + "> + + + +
+ + + + + " > + "> + +
+ +
+ +   + +
+
+ +
+ +
+ +
+ + + +
+
+ + : + +
+ +
+ + + +
+ + : +
+ +
+
+ + + +
+ :   + + + + + + + +
+ +
+
+
+
+
+
+
+ +
+
+
+ + + + + + + +
+ + + + - - - - - - + + + + + + + + +
+
- - - - \ No newline at end of file + + \ No newline at end of file