From 9ad0bd10265fbcef3efe33704c52ffa3e7f841e4 Mon Sep 17 00:00:00 2001 From: Surinder Kumar Date: Wed, 13 Jul 2016 12:35:22 +0100 Subject: [PATCH] Fix clear query option which was opening a query tool in new window in Mac Runtime --- .../tools/sqleditor/templates/sqleditor/js/sqleditor.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/web/pgadmin/tools/sqleditor/templates/sqleditor/js/sqleditor.js b/web/pgadmin/tools/sqleditor/templates/sqleditor/js/sqleditor.js index 944c0be2f..5fb07c396 100644 --- a/web/pgadmin/tools/sqleditor/templates/sqleditor/js/sqleditor.js +++ b/web/pgadmin/tools/sqleditor/templates/sqleditor/js/sqleditor.js @@ -862,9 +862,8 @@ define( // Callback function for the clear button click. on_clear: function(ev) { - ev = ev || window.event; - ev.cancelBubble = true; - ev.stopPropagation(); + this._stopEventPropogation(ev); + this._closeDropDown(ev); this.query_tool_obj.setValue(''); },