Add debugging code for overlays.

This commit is contained in:
Steve Howell 2017-06-15 11:03:29 -04:00
parent d2b710b307
commit fd62edde39
1 changed files with 9 additions and 0 deletions

View File

@ -44,6 +44,8 @@ exports.open_overlay = function (opts) {
return;
}
blueslip.debug('open overlay: ' + opts.name);
// Our overlays are kind of crufty...we have an HTML id
// attribute for them and then a data-overlay attribute for
// them. Make sure they match.
@ -68,6 +70,13 @@ exports.close_overlay = function (name) {
return;
}
if (name === undefined) {
blueslip.error('Undefined name was passed into close_overlay');
return;
}
blueslip.debug('close overlay: ' + name);
active_overlay.removeClass("show");
if (!close_handler) {