Index: lams_monitoring/conf/language/lams/ApplicationResources.properties
===================================================================
diff -u -rf4621cf27d17389c7437daf00f3c2b833290ca5a -r8ecd468196ce6f79783ec375bc9f92c7d38579e2
--- lams_monitoring/conf/language/lams/ApplicationResources.properties (.../ApplicationResources.properties) (revision f4621cf27d17389c7437daf00f3c2b833290ca5a)
+++ lams_monitoring/conf/language/lams/ApplicationResources.properties (.../ApplicationResources.properties) (revision 8ecd468196ce6f79783ec375bc9f92c7d38579e2)
@@ -218,11 +218,11 @@
button.schedule.tooltip =Schedule lesson to start in a future time
button.start.now =Start Now
button.start.now.tooltip =Start the lesson immediately
-lesson.enable.presence =Allow learners to see who is online
+lesson.presence =Presence
lesson.enable.presence.alert =Now learners can see who is online
lesson.disable.presence.alert =Now learners can not see who is online
lesson.presence.count =users
-lesson.enable.im =Enable Instant Messaging
+lesson.im =Instant Messaging
lesson.enable.im.alert =Instant Messaging is now enabled
lesson.disable.im.alert =Instant Messaging is now disabled
lesson.required.tasks =Required tasks
Index: lams_monitoring/web/css/monitorLesson.css
===================================================================
diff -u -r36e474218e1201198ba926e57e56c7a885db1a9f -r8ecd468196ce6f79783ec375bc9f92c7d38579e2
--- lams_monitoring/web/css/monitorLesson.css (.../monitorLesson.css) (revision 36e474218e1201198ba926e57e56c7a885db1a9f)
+++ lams_monitoring/web/css/monitorLesson.css (.../monitorLesson.css) (revision 8ecd468196ce6f79783ec375bc9f92c7d38579e2)
@@ -12,6 +12,10 @@
margin-top: 30%;
}
+dd {
+ margin-bottom: 10px;
+}
+
#content {
width: 100%;
padding: 0;
@@ -28,6 +32,11 @@
padding-bottom: 0;
}
+#content .navbar-collapse {
+ padding-left: 0;
+}
+
+
.errorMessage {
font-weight: bold;
color: red;
Index: lams_monitoring/web/includes/javascript/monitorLesson.js
===================================================================
diff -u -r36e474218e1201198ba926e57e56c7a885db1a9f -r8ecd468196ce6f79783ec375bc9f92c7d38579e2
--- lams_monitoring/web/includes/javascript/monitorLesson.js (.../monitorLesson.js) (revision 36e474218e1201198ba926e57e56c7a885db1a9f)
+++ lams_monitoring/web/includes/javascript/monitorLesson.js (.../monitorLesson.js) (revision 8ecd468196ce6f79783ec375bc9f92c7d38579e2)
@@ -100,8 +100,8 @@
*/
function initLessonTab(){
// sets presence availability
- $('#presenceAvailableField').change(function(){
- var checked = $(this).is(':checked');
+ $('#presenceButton').click(function(){
+ var checked = $(this).toggleClass('btn-success').hasClass('btn-success');
$.ajax({
dataType : 'xml',
url : LAMS_URL + 'monitoring/monitoring.do',
@@ -115,24 +115,19 @@
updatePresenceAvailableCount();
if (checked) {
- $('#imAvailableField').attr('disabled', null);
- $('#imDiv').css('display','inline');
+ $('#imButton').show();
alert(LABELS.LESSON_PRESENCE_ENABLE_ALERT);
} else {
- $('#imAvailableField').attr({
- 'checked' : null,
- 'disabled' : 'disabled'
- }).change();
- $('#imDiv').css('display','none');
+ $('#imButton').removeClass('btn-success').hide();
alert(LABELS.LESSON_PRESENCE_DISABLE_ALERT);
}
}
});
});
// sets instant messaging availability
- $('#imAvailableField').change(function(){
- var checked = $(this).is(':checked');
+ $('#imButton').click(function(){
+ var checked = $(this).toggleClass('btn-success').hasClass('btn-success');
$.ajax({
dataType : 'xml',
url : LAMS_URL + 'monitoring/monitoring.do',
@@ -144,14 +139,10 @@
},
success : function() {
if (checked) {
- $('#openImButton').css('display', 'inline');
- $('#imButton').attr('class','btn btn-xs btn-success voffset10');
- $('#imDiv').css('display','inline');
+ $('#openImButton').show();
alert(LABELS.LESSON_IM_ENABLE_ALERT);
} else {
- $('#openImButton').css('display', 'none');
- $('#imButton').attr('class','btn btn-xs btn-default voffset10');
- $('#imDiv').css('display','none');
+ $('#openImButton').hide();
alert(LABELS.LESSON_IM_DISABLE_ALERT);
}
}
@@ -499,10 +490,8 @@
function updatePresenceAvailableCount(){
- var checked = $('#presenceAvailableField').is(':checked'),
- counter = $('#presenceAvailableCount');
- presenceButton = $('#presenceButton');
- presenceCounter = $('#presenceCounter');
+ var checked = $('#presenceButton').hasClass('btn-success'),
+ counter = $('#presenceCounter');
if (checked) {
$.ajax({
dataType : 'text',
@@ -513,17 +502,10 @@
'lessonID' : lessonId
},
success : function(result) {
- $('span', counter).text(result);
- presenceCounter.text(result);
- presenceButton.attr('class', 'btn btn-xs btn-success');
- presenceCounter.show();
- counter.show();
+ counter.text(result).show();
}
});
-
} else {
- presenceCounter.hide();
- presenceButton.attr('class', 'btn btn-xs btn-default');
counter.hide();
}
}
Index: lams_monitoring/web/monitor.jsp
===================================================================
diff -u -r36e474218e1201198ba926e57e56c7a885db1a9f -r8ecd468196ce6f79783ec375bc9f92c7d38579e2
--- lams_monitoring/web/monitor.jsp (.../monitor.jsp) (revision 36e474218e1201198ba926e57e56c7a885db1a9f)
+++ lams_monitoring/web/monitor.jsp (.../monitor.jsp) (revision 8ecd468196ce6f79783ec375bc9f92c7d38579e2)
@@ -175,10 +175,10 @@
initLearnersTab();
refreshMonitor();
- | -
-
- checked="checked"
-
- />
- - - disabled="disabled" - - |
-
|