Index: lams_central/web/addLesson.jsp
===================================================================
RCS file: /usr/local/cvsroot/lams_central/web/addLesson.jsp,v
diff -u -r1.16.2.18 -r1.16.2.19
--- lams_central/web/addLesson.jsp 30 Nov 2016 16:20:56 -0000 1.16.2.18
+++ lams_central/web/addLesson.jsp 3 Dec 2016 09:41:13 -0000 1.16.2.19
@@ -293,11 +293,14 @@
-
-
+
+
Index: lams_central/web/authoring/authoring.jsp
===================================================================
RCS file: /usr/local/cvsroot/lams_central/web/authoring/authoring.jsp,v
diff -u -r1.6.2.41 -r1.6.2.42
--- lams_central/web/authoring/authoring.jsp 3 Dec 2016 09:09:00 -0000 1.6.2.41
+++ lams_central/web/authoring/authoring.jsp 3 Dec 2016 09:41:13 -0000 1.6.2.42
@@ -375,7 +375,8 @@
-
+ ">
Index: lams_central/web/includes/javascript/addLesson.js
===================================================================
RCS file: /usr/local/cvsroot/lams_central/web/includes/javascript/addLesson.js,v
diff -u -r1.7.2.11 -r1.7.2.12
--- lams_central/web/includes/javascript/addLesson.js 30 Nov 2016 22:18:29 -0000 1.7.2.11
+++ lams_central/web/includes/javascript/addLesson.js 3 Dec 2016 09:41:13 -0000 1.7.2.12
@@ -316,15 +316,15 @@
function previewLesson(){
var ldNode = tree.getHighlightedNode(),
- popupWidth = 1280,
- popupHeight = 720;
+ popupWidth = 1280,
+ popupHeight = 720;
if (!ldNode || !ldNode.data.learningDesignId) {
$('#ldNotChosenError').show();
doSelectTab(1);
return;
}
- $('body').css('cursor', 'wait');
+ var previewButton = $('#previewButton').button('loading');
// initialize, create and enter the preview lesson
$.ajax({
url : LAMS_URL + 'monitoring/monitoring.do',
@@ -339,7 +339,7 @@
success : function(lessonID) {
if (!lessonID) {
alert(LABELS.PREVIEW_ERROR);
- $('body').css('cursor', 'auto');
+ previewButton.button('reset');
return;
}
@@ -352,10 +352,10 @@
cache : false,
dataType : 'text',
success : function() {
- $('body').css('cursor', 'auto');
// open preview pop up window
window.open(LAMS_URL + 'home.do?method=learner&mode=preview&lessonID='+lessonID,'Preview',
'width=' + popupWidth + ',height=' + popupHeight + ',resizable,status=yes');
+ previewButton.button('reset');
}
});
Index: lams_central/web/includes/javascript/authoring/authoringMenu.js
===================================================================
RCS file: /usr/local/cvsroot/lams_central/web/includes/javascript/authoring/authoringMenu.js,v
diff -u -r1.34.2.22 -r1.34.2.23
--- lams_central/web/includes/javascript/authoring/authoringMenu.js 1 Nov 2016 10:06:25 -0000 1.34.2.22
+++ lams_central/web/includes/javascript/authoring/authoringMenu.js 3 Dec 2016 09:41:13 -0000 1.34.2.23
@@ -509,6 +509,8 @@
return;
}
+ var previewButton = $('#previewButton').button('loading');
+
// initialize, create and enter the preview lesson
$.ajax({
url : LAMS_URL + 'monitoring/monitoring.do',
@@ -523,6 +525,7 @@
success : function(lessonID) {
if (!lessonID) {
alert(LABELS.PREVIEW_ERROR);
+ previewButton.button('reset');
return;
}
@@ -538,6 +541,7 @@
// open preview pop up window
window.open(LAMS_URL + 'home.do?method=learner&mode=preview&lessonID='+lessonID,'Preview',
'width=1280,height=720,resizable,status=yes');
+ previewButton.button('reset');
}
});