diff --git a/plugins/Dashboard/templates/dashboardWidget.js b/plugins/Dashboard/templates/dashboardWidget.js
index <HASH>..<HASH> 100755
--- a/plugins/Dashboard/templates/dashboardWidget.js
+++ b/plugins/Dashboard/templates/dashboardWidget.js
@@ -120,7 +120,7 @@
 
             var currentWidget = this.element;
             $('body').on('click.dashboardWidget', function (ev) {
-                if (ev.target.className == "ui-widget-overlay") {
+                if (/ui-widget-overlay/.test(ev.target.className)) {
                     $(currentWidget).dialog("close");
                 }
             });
refs #<I> fixed maximised widgets not closing on click outside