From db7b8a8fa5035fa7b40bae67ecec38bfaa643027 Mon Sep 17 00:00:00 2001 From: Murtuza Zabuawala Date: Wed, 14 Sep 2016 11:22:54 +0100 Subject: [PATCH] Don't disable the save button when executing a query in the query tool. Fixes #1695 --- .../tools/sqleditor/templates/sqleditor/js/sqleditor.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/pgadmin/tools/sqleditor/templates/sqleditor/js/sqleditor.js b/web/pgadmin/tools/sqleditor/templates/sqleditor/js/sqleditor.js index 402c31613..75205d319 100644 --- a/web/pgadmin/tools/sqleditor/templates/sqleditor/js/sqleditor.js +++ b/web/pgadmin/tools/sqleditor/templates/sqleditor/js/sqleditor.js @@ -1709,9 +1709,12 @@ define( // Initial settings for delete row, copy row and paste row buttons. $("#btn-delete-row").prop('disabled', true); - if (!self.can_edit) { + // Do not disable save button in query tool + if(!self.is_query_tool && !self.can_edit) { $("#btn-save").prop('disabled', true); $("#btn-file-menu-dropdown").prop('disabled', true); + } + if (!self.can_edit) { $("#btn-delete-row").prop('disabled', true); $("#btn-copy-row").prop('disabled', true); $("#btn-paste-row").prop('disabled', true);