Index: lams_central/web/indexLessonConditions.jsp =================================================================== diff -u -rae9912edeb82523d71d1e18df67ec5ee7e6301a8 -ree2eb1711b99ac1eb975da1934ea4e78df57c89f --- lams_central/web/indexLessonConditions.jsp (.../indexLessonConditions.jsp) (revision ae9912edeb82523d71d1e18df67ec5ee7e6301a8) +++ lams_central/web/indexLessonConditions.jsp (.../indexLessonConditions.jsp) (revision ee2eb1711b99ac1eb975da1934ea4e78df57c89f) @@ -1,8 +1,5 @@ -<%@ page contentType="text/html; charset=utf-8" language="java"%> -<%@ taglib uri="tags-fmt" prefix="fmt"%> -<%@ taglib uri="tags-core" prefix="c"%> -<%@ taglib uri="tags-lams" prefix="lams"%> -<%@ taglib uri="tags-function" prefix="fn"%> +<%@ include file="/common/taglibs.jsp"%> + @@ -30,9 +27,8 @@ var lessonId="${lsId}"; var edit="${edit}"; - function removePrecedingLesson(precedingLessonId){ - document.location.href="lessonConditions/removeLessonDependency.do?lsId=" + lessonId - + "&precedingLessonId=" + precedingLessonId; + function submitForm(formId){ + $(formId).submit(); } $(document).ready(function(){ @@ -66,9 +62,13 @@
+ + + - " onclick="javascript:removePrecedingLesson(${precedingLesson.id})"> + " onclick="javascript:submitForm(delete_${precedingLesson.id})"> +
@@ -92,6 +92,8 @@
+ +
+