Skip to content

Commit 6acb222

Browse files
authored
LSNBLDR-810 - Javascript error in lessons when closing "More tools" dialog (sakaiproject#4753)
1 parent 350e835 commit 6acb222

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lessonbuilder/tool/src/webapp/js/show-page.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -3247,7 +3247,9 @@ function closeDropdown() {
32473247
}
32483248

32493249
function closeDropdown(dropDiv, button) {
3250-
dropDiv.dialog('close');
3250+
if (dropDiv !== undefined && dropDiv.dialog !== undefined) {
3251+
dropDiv.dialog('close');
3252+
}
32513253
unhideMultimedia();
32523254
oldloc.focus();
32533255
return false;

0 commit comments

Comments
 (0)