Index: lams_central/web/css/_authoring_base.scss
===================================================================
diff -u -r65f6cda04f38eb60e5346f1601ebac80af95557b -rb06878b0b863637bde942e61606188520d605569
--- lams_central/web/css/_authoring_base.scss (.../_authoring_base.scss) (revision 65f6cda04f38eb60e5346f1601ebac80af95557b)
+++ lams_central/web/css/_authoring_base.scss (.../_authoring_base.scss) (revision b06878b0b863637bde942e61606188520d605569)
@@ -169,7 +169,7 @@
padding: 5px;
}
-div#infoDialog .infoDialogBody.fade {
+div#infoDialog #infoDialogBody.temporary {
cursor: pointer;
}
Index: lams_central/web/includes/javascript/authoring/authoringGeneral.js
===================================================================
diff -u -r65f6cda04f38eb60e5346f1601ebac80af95557b -rb06878b0b863637bde942e61606188520d605569
--- lams_central/web/includes/javascript/authoring/authoringGeneral.js (.../authoringGeneral.js) (revision 65f6cda04f38eb60e5346f1601ebac80af95557b)
+++ lams_central/web/includes/javascript/authoring/authoringGeneral.js (.../authoringGeneral.js) (revision b06878b0b863637bde942e61606188520d605569)
@@ -994,9 +994,23 @@
'at' : 'center top+20px',
'of' : '#canvas'
},
- 'show' : function(html){
- var body = $('#infoDialogBody', layout.infoDialog);
- if (layout.infoDialog.hasClass('in')) {
+ 'show' : function(html, temporary){
+ var body = $('#infoDialogBody', layout.infoDialog),
+ visible = layout.infoDialog.hasClass('in');
+ if (visible || !temporary) {
+ $('.modal-header, #infoDialogButtons', layout.infoDialog).show();
+ body.removeClass('temporary');
+ } else {
+ $('.modal-header, #infoDialogButtons', layout.infoDialog).hide();
+ body.addClass('temporary').one('click', function(){
+ layout.infoDialog.modal('hide');
+ });
+ setTimeout(function(){
+ body.off('click');
+ layout.infoDialog.modal('hide');
+ }, 5000);
+ }
+ if (visible) {
body.html(body.html() + '
' + html);
} else {
body.html(html);