Index: lams_bb_integration/web/links/admin.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_bb_integration/web/links/admin.jsp,v diff -u -r1.2 -r1.3 --- lams_bb_integration/web/links/admin.jsp 15 Jul 2016 08:47:58 -0000 1.2 +++ lams_bb_integration/web/links/admin.jsp 17 Aug 2016 14:57:41 -0000 1.3 @@ -54,6 +54,11 @@ +
+ +
@@ -66,7 +71,7 @@ // Open the LAMS Seuence Monitor Window function cloneLessons() { //block #buttons - blockButtons(); + blockButtons('

Please, wait. Lessons are getting copied now.

'); $j.ajax({ async: true, @@ -90,7 +95,7 @@ function importLessons() { //block #buttons - blockButtons(); + blockButtons('

Please, wait. Lessons are getting copied now.

'); $j.ajax({ async: true, @@ -110,11 +115,33 @@ return false; } + function correctLineitems() { + //block #buttons + blockButtons('

Please wait while Grade center columns are getting fixed.

'); + + $j.ajax({ + async: true, + url: '../CorrectLineitems', + data : 'courseId=<%=ctx.getCourse().getCourseId()%>', + type: 'post', + success: function (response) { + $j("#buttons").unblock(); + alert(response); + }, + error: function (request, status, error) { + $j("#buttons").unblock(); + alert(error); + } + }); + + return false; + } + //auxiliary method to block #buttons element - function blockButtons(){ + function blockButtons(message){ $j('#buttons').block({ - message: '

Please, wait. Lessons are getting copied now.

', + message: message, baseZ: 1000000, fadeIn: 0, css: {