Index: lams_central/web/lti/addLesson.jsp =================================================================== diff -u -rcd0d3ff90f2fcd957ed96fe1bcd556524b197d39 -re8258c12ef64821f5c4797d12a4d9d4bf99c8804 --- lams_central/web/lti/addLesson.jsp (.../addLesson.jsp) (revision cd0d3ff90f2fcd957ed96fe1bcd556524b197d39) +++ lams_central/web/lti/addLesson.jsp (.../addLesson.jsp) (revision e8258c12ef64821f5c4797d12a4d9d4bf99c8804) @@ -1,20 +1,14 @@ - -<%@ page language="java" pageEncoding="UTF-8" contentType="text/html;charset=utf-8" %> -<%@ taglib uri="tags-lams" prefix="lams" %> -<%@ taglib uri="tags-fmt" prefix="fmt" %> -<%@ taglib uri="tags-core" prefix="c" %> -<%@ taglib uri="tags-html" prefix="html" %> -<%@ taglib uri="tags-function" prefix="fn"%> +<%@ include file="/common/taglibs.jsp"%> <fmt:message key="title.author.window"/> - + @@ -73,9 +67,8 @@ tree.setDynamicLoad(function(node, callback){ // load subfolder contents $.ajax({ - url : LAMS_URL + 'home.do', + url : LAMS_URL + 'home/getFolderContents.do', data : { - 'method' : 'getFolderContents', 'folderID' : node.data.folderID }, cache : false, @@ -124,13 +117,12 @@ function openPreview() { var ldId = document.getElementsByName("ldId")[0].value; - var title = document.lessonForm.title.value; + var title = document.forms.lessonForm.title.value; // initialize, create and enter the preview lesson $.ajax({ - url : LAMS_URL + 'monitoring/monitoring.do', + url : LAMS_URL + 'monitoring/monitoring/initializeLesson.do', data : { - 'method' : 'initializeLesson', 'learningDesignID' : ldId, 'copyType' : 3, 'lessonName' : "" @@ -144,16 +136,15 @@ } $.ajax({ - url : LAMS_URL + 'monitoring/monitoring.do', + url : LAMS_URL + 'monitoring/monitoring/startPreviewLesson.do', data : { - 'method' : 'startPreviewLesson', 'lessonID' : lessonID }, cache : false, dataType : 'text', success : function() { // open preview pop up window - window.open(LAMS_URL + 'home.do?method=learner&mode=preview&lessonID='+lessonID,'Preview', + window.open(LAMS_URL + 'home/learner.do?mode=preview&lessonID='+lessonID,'Preview', 'width=920,height=700,resizable,scrollbars=yes,status=yes'); } }); @@ -172,7 +163,7 @@ // Check that a title has been supplied function confirmSubmit() { - var title = rettrim(document.lessonForm.title.value); + var title = rettrim(document.forms.lessonForm.title.value); if ((title == "")||(title == null)) { alert(""); return false; @@ -198,11 +189,12 @@ <%-- Form to Collect ID of Selected LAMS Sequence --%> -
+ + <%-- ContentItemSelectionRequest items --%>