Index: lams_central/web/css/index.css =================================================================== diff -u -r06c6921e9173ff630c99268f69463adf1a5e4834 -r6b5d65301fcf9cacfa07e61c89ce8101ead203cd --- lams_central/web/css/index.css (.../index.css) (revision 06c6921e9173ff630c99268f69463adf1a5e4834) +++ lams_central/web/css/index.css (.../index.css) (revision 6b5d65301fcf9cacfa07e61c89ce8101ead203cd) @@ -117,6 +117,13 @@ padding: 3px; } +#dragHelper { + border: thin black solid; + background : transparent; + /* z-index has to be less than the dialog otherwise the helper won't drag in Chrome and IE */ + z-index: 50; +} + /* Style for Monitoring and Add Lesson dialogs. Put the transparent dialog's titlebar over the tab bar. */ body > .tabbedDialog .ui-dialog-titlebar { @@ -133,5 +140,6 @@ } body > .addLessonDialog .ui-dialog-titlebar { + width: 25px; right : 10px; } \ No newline at end of file Index: lams_monitoring/web/css/monitorLesson.css =================================================================== diff -u -r06c6921e9173ff630c99268f69463adf1a5e4834 -r6b5d65301fcf9cacfa07e61c89ce8101ead203cd --- lams_monitoring/web/css/monitorLesson.css (.../monitorLesson.css) (revision 06c6921e9173ff630c99268f69463adf1a5e4834) +++ lams_monitoring/web/css/monitorLesson.css (.../monitorLesson.css) (revision 6b5d65301fcf9cacfa07e61c89ce8101ead203cd) @@ -9,6 +9,10 @@ padding: 0px; } +div#tabs ul { + cursor: move; +} + div#tabs ul li a { border-bottom: none; } Index: lams_monitoring/web/includes/javascript/monitorLesson.js =================================================================== diff -u -rdbdc1eb50ed95e921d27000b8d5d52ff9058e5e5 -r6b5d65301fcf9cacfa07e61c89ce8101ead203cd --- lams_monitoring/web/includes/javascript/monitorLesson.js (.../monitorLesson.js) (revision dbdc1eb50ed95e921d27000b8d5d52ff9058e5e5) +++ lams_monitoring/web/includes/javascript/monitorLesson.js (.../monitorLesson.js) (revision 6b5d65301fcf9cacfa07e61c89ce8101ead203cd) @@ -64,17 +64,20 @@ // since this code is inside an iframe, the helper is // a transparent div with black borders attached to parent document var dialogName = "dialogMonitorLesson" + lessonId, - dialog = $('#' + dialogName, window.parent.document).closest('.ui-dialog'), - helper = dialog.clone().empty(); - helper.css({ - 'border': 'thin black solid', - 'width' : dialog.width(), - 'height' : dialog.height(), - 'background' : 'transparent' - }); + dialog = $('#' + dialogName, window.parent.document).closest('.ui-dialog'), + helper = $('
').attr('id', 'dragHelper').css({ + 'width' : dialog.width(), + 'height' : dialog.height() + }); return helper; }, 'appendTo' : window.parent.document.body, + 'start' : function(){ + $(window.parent.document.body).mouseup(function(){ + // IE sometimes does not trigger drag stop, so we need to help it + $('#tabs').trigger('mouseup'); + }); + }, 'drag' : function(event, ui) { // adjust position to be relative to parent document, not iframe contents var dialogName = "dialogMonitorLesson" + lessonId, @@ -83,6 +86,7 @@ ui.position.left += dialog.position().left; }, 'stop' : function(event, ui) { + $(window.parent.document.body).off('mouseup'); var dialogName = "dialogMonitorLesson" + lessonId, dialog = $('#' + dialogName, window.parent.document).closest('.ui-dialog'); dialog.offset({