From fd62edde3984edaeaa203dcc487f53932643c2d1 Mon Sep 17 00:00:00 2001 From: Steve Howell Date: Thu, 15 Jun 2017 11:03:29 -0400 Subject: [PATCH] Add debugging code for overlays. --- static/js/overlays.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/static/js/overlays.js b/static/js/overlays.js index 52993f34f9..84a030434e 100644 --- a/static/js/overlays.js +++ b/static/js/overlays.js @@ -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) {