Index: lams_bb_integration/web/links/admin.jsp =================================================================== diff -u -r91e279a802a26c1c977e9c843b2937684fcdda2f -r15727fba2560b07c19aa85591b35791515be1a8e --- lams_bb_integration/web/links/admin.jsp (.../admin.jsp) (revision 91e279a802a26c1c977e9c843b2937684fcdda2f) +++ lams_bb_integration/web/links/admin.jsp (.../admin.jsp) (revision 15727fba2560b07c19aa85591b35791515be1a8e) @@ -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: {