Index: lams_tool_larsrc/web/pages/learning/learning.jsp =================================================================== diff -u -r1c66169338ee96334e48a8770718adb0a8c1378b -r81f928586161dd03042b6353f68c7d7b8279ccde --- lams_tool_larsrc/web/pages/learning/learning.jsp (.../learning.jsp) (revision 1c66169338ee96334e48a8770718adb0a8c1378b) +++ lams_tool_larsrc/web/pages/learning/learning.jsp (.../learning.jsp) (revision 81f928586161dd03042b6353f68c7d7b8279ccde) @@ -1,441 +1,412 @@ +<%@ include file="/common/taglibs.jsp"%> + +<%-- param has higher level for request attribute --%> + + + + + + + + + + <%-- If you change this file, remember to update the copy made for CNG-36 --%> -<%@ include file="/common/taglibs.jsp"%> - - - <fmt:message key="label.learning.title" /> - - <%@ include file="/common/header.jsp"%> + - - - - + .activity-bottom-buttons { + clear: both; + } - <%-- param has higher level for request attribute --%> - - - + #addresource { + clear: both; + } + - + + + <%@ include file="/common/uppylang.jsp"%> - - - - - - + + + + + + + + + let itemsComplete = ${itemsComplete}; - - <%@ include file="/common/uppylang.jsp"%> + $(document).ready(function(){ + cancel(); - - - - - + function submitResourceForm() { + if ( $(this).valid() ) { + //copy value from CKEditor to textarea before ajax submit + $("textarea[id^='instructions']").each(function() { + var ckeditorData = CKEDITOR.instances[this.name].getData(); + //skip out empty values + this.value = ((ckeditorData == null) || (ckeditorData.replace(/ | |
|\s|

|<\/p>|\xa0/g, "").length == 0)) ? "" : ckeditorData; + }); - - - - function cancel(){ - $('.btn-disable-on-submit').prop('disabled', false); - $("#addresource").html(''); - } +

- function checkNew(){ - document.location.href = '?mode=${mode}&toolSessionID=${toolSessionID}&reqID=' - + new Date().getTime(); - return false; - } + + + + + + + + + + + + + - function finishSession(){ - document.location.href =''; - } + + + ${resource.miniViewNumberStr} + + - function continueReflect(){ - $('.btn-disable-on-submit').prop('disabled', true); - document.location.href=''; - } + - function hideItem(itemUid) { - if(confirm("")){ - $.ajax({ - url: '', - data: 'sessionMapID=${sessionMapID}&itemUid=' + itemUid, - cache : false, - async: false, - success: function () { - checkNew(); - } - }); - } - } - - - + +
+ +
- + +
+ +
- - - - - - - - - - - - - - - - ${resource.miniViewNumberStr} - - - - - - - - -
-
- - - -
- - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - -
-
- -
-
- - - - - - - - - +
+ + + - - " - onclick="hideItem(${item.uid})"> - -
-
+ + + -
-
- -
- + + + + + +
+
- -
-
+
+
+ - - -
-
- -
-
-
- -
+ + + + - - -

- - - -

-
- -

- -

-
-
+
- - - -
-
- - + + + + + + + + + + + - - - - - - - - - -
-
+ +
+ + + + + + + + + - + + + - - + + + + + +
+
- - -
\ No newline at end of file + +
+
+ + + \ No newline at end of file