Index: lams_monitoring/web/includes/javascript/monitorLesson.js =================================================================== diff -u -rfe122f9f7ac40f3a3696a7c69043fc34df7994d4 -rd815a2118f51e6fef637179ba6a438e563ab1003 --- lams_monitoring/web/includes/javascript/monitorLesson.js (.../monitorLesson.js) (revision fe122f9f7ac40f3a3696a7c69043fc34df7994d4) +++ lams_monitoring/web/includes/javascript/monitorLesson.js (.../monitorLesson.js) (revision d815a2118f51e6fef637179ba6a438e563ab1003) @@ -1,4 +1,4 @@ -// ********** GLOBAL VARIABLES ********** +// ********** GLOBAL VARIABLES ********** // copy of lesson SVG so it does no need to be fetched every time var originalSequenceCanvas = null, // DIV container for lesson SVG @@ -935,7 +935,7 @@ }); // small info box on Sequence tab, activated when the tab is showed - showDialog('sequenceInfoDialog', { + var sequenceInfoDialog = showDialog('sequenceInfoDialog', { 'autoOpen' : false, 'width' : 300, 'modal' : false, @@ -956,7 +956,8 @@ 'of' : '#sequenceCanvas' } } - }, false).click(function(){ + }, false); + $(sequenceInfoDialog).click(function(){ $('#sequenceInfoDialog').modal('hide'); }).find('.modal-header').remove();