Index: lams_central/web/css/components.css =================================================================== diff -u -rc921b1651e4291290d929f20e22be28fd4b38c20 -r742be95aa7c3cc930231fe4299e28942bb6aaf7f --- lams_central/web/css/components.css (.../components.css) (revision c921b1651e4291290d929f20e22be28fd4b38c20) +++ lams_central/web/css/components.css (.../components.css) (revision 742be95aa7c3cc930231fe4299e28942bb6aaf7f) @@ -346,7 +346,7 @@ } .component-page-wrapper .hamburger-box p { - font-family: mont-semibold, sans-serif; + font-family: mont-bold, sans-serif; font-size: 2rem; margin: 0; line-height: 1; Index: lams_central/web/includes/fonts/mont-semibold.ttf =================================================================== diff -u -r3212cc9d3d44d485a7fb6971a82327db71d7cec9 -r742be95aa7c3cc930231fe4299e28942bb6aaf7f Binary files differ Index: lams_central/web/includes/javascript/dialog5.js =================================================================== diff -u -rf932b797330099220514e4c2acef885899567207 -r742be95aa7c3cc930231fe4299e28942bb6aaf7f --- lams_central/web/includes/javascript/dialog5.js (.../dialog5.js) (revision f932b797330099220514e4c2acef885899567207) +++ lams_central/web/includes/javascript/dialog5.js (.../dialog5.js) (revision 742be95aa7c3cc930231fe4299e28942bb6aaf7f) @@ -56,7 +56,6 @@ // use the input attributes or fall back to default ones initParams = $.extend({ 'autoOpen' : true, - 'modal' : false, 'draggable' : true, 'resizable' : extraButtons == true, 'startMaximized' : false, @@ -93,7 +92,10 @@ var draggable = initParams.draggable && ! /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent); if (draggable) { modalDialog.draggable({ - 'cancel' : '.modal-body, button.close' + 'cancel' : '.modal-body, button.close', + 'revert' : function() { + return modalDialog.offset().top < -5; + } }); } dialog.data("isDraggable", draggable); @@ -103,98 +105,19 @@ dialog.data(initParams.data); } - dialog.on('show.bs.modal', initParams.modal ? initParams.open : function(event){ - - // skip hiding dialog if it's already shown, as bootstrap doesn't fire 'shown.bs.modal' event second time if dialog is already open - if (!dialog.data('shown')) { - dialog.css('visibility', 'hidden'); - } - - if (initParams.open) { - initParams.open.call(dialog, event); - } - - }); + dialog.on('show.bs.modal', initParams.open); dialog.on('hide.bs.modal', initParams.beforeClose); dialog.on('hidden.bs.modal', initParams.close); dialog.modal({ 'keyboard' : false, - 'backdrop' : initParams.modal ? 'static' : false + 'backdrop' : 'static' }); if (initParams.autoOpen) { dialog.modal('show'); } - if (!initParams.modal) { - // make the dialog non-modal - dialog.on('shown.bs.modal', function(){ - - // store 'shown.bs.modal' event was fired - dialog.data({ - 'shown' : true - }); - - // the main modal div is maximised, we need to shrink it - modalDialog.css({ - 'margin' : 0 - }); - dialog.width(modalDialog.outerWidth(true) + 15); - dialog.height(modalDialog.outerHeight(true) + 15); - // remove overlay - dialog.siblings('.modal-backdrop').remove(); - dialog.css('visibility', 'visible'); - - // center the dialog or put it into previously defined position - var position = dialog.data('position'); - if (position !== false) { - position = position || - (dialog.data('isCreateInParentWindow') ? - { - 'my' : 'center center', - 'at' : 'center center', - 'of' : targetWindow - } - : - { - 'my' : 'top', - 'at' : 'top+15px', - 'of' : window - } - ); - dialog.position(position); - } - - if (draggable) { - modalDialog.on('drag', function(event, ui){ - // pass the event to the dialog, not its internal element - dialog.offset({ - 'top' : Math.min(window.innerHeight - 30, Math.max(0, ui.offset.top + 5)), - 'left' : Math.min(window.innerWidth - 200, Math.max(0, ui.offset.left + 5)) - }); - modalDialog.css({ - 'position' : 'static' - }); - }); - } - - if (initParams.resizable) { - modalContent.on('resize', function(event, ui){ - dialog.width(ui.size.width + 15); - dialog.height(ui.size.height + 15); - }).on('resizestart', function(){ - // disable iframe as a target - // so it does not consume mouse movement when shrinking the dialog - $('iframe', this).css('pointer-events', 'none'); - }).on('resizestop', function(){ - $('iframe', this).css('pointer-events', 'auto'); - dialog.modal('handleUpdate'); - }); - } - }); - } - if (extraButtons) { var maximizeButton = $('.dialogMaximise', dialog).click(function(){ var icon = $('i', this), @@ -206,10 +129,6 @@ // restore dialog var oldWidth = dialog.data('oldWidth'), oldHeight = dialog.data('oldHeight'); - if (!initParams.modal) { - dialog.width(oldWidth + 15); - dialog.height(oldHeight + 15); - } internalDialog.width(oldWidth); internalContent.width(oldWidth); internalContent.height(oldHeight); @@ -222,12 +141,6 @@ 'oldWidth' : internalContent.width(), 'oldHeight': internalContent.height() }); - if (!initParams.modal) { - dialog.css({ - 'width' : '100%', - 'height': '100%' - }); - } internalDialog.css({ 'width' : '100%', 'height': '100%' @@ -239,7 +152,7 @@ $('.ui-resizable-handle', dialog).hide(); } // center the dialog - (initParams.modal ? internalDialog : dialog).position( + internalDialog.position( dialog.data('isCreateInParentWindow') ? { 'my' : 'center center', Index: lams_gradebook/web/releaseLessonMarks5.jsp =================================================================== diff -u -r2e7df6de960d7ad381ddc986759b44918ec9b565 -r742be95aa7c3cc930231fe4299e28942bb6aaf7f --- lams_gradebook/web/releaseLessonMarks5.jsp (.../releaseLessonMarks5.jsp) (revision 2e7df6de960d7ad381ddc986759b44918ec9b565) +++ lams_gradebook/web/releaseLessonMarks5.jsp (.../releaseLessonMarks5.jsp) (revision 742be95aa7c3cc930231fe4299e28942bb6aaf7f) @@ -360,13 +360,13 @@