From f779378e8a1089e33697fcf716c1c5f95d766139 Mon Sep 17 00:00:00 2001 From: Aditya Toshniwal Date: Thu, 17 Jan 2019 13:27:07 +0530 Subject: [PATCH] Add right border on selected tree item. --- .../schemas/functions/static/js/procedure.js | 1 + web/pgadmin/preferences/static/js/preferences.js | 15 ++------------- web/pgadmin/static/scss/_aci_tree.overrides.scss | 6 ++++++ 3 files changed, 9 insertions(+), 13 deletions(-) diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/functions/static/js/procedure.js b/web/pgadmin/browser/server_groups/servers/databases/schemas/functions/static/js/procedure.js index 243e18148..a1cd71f1f 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/functions/static/js/procedure.js +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/functions/static/js/procedure.js @@ -43,6 +43,7 @@ define('pgadmin.node.procedure', [ hasDepends: true, hasStatistics: true, hasScriptTypes: ['create', 'exec'], + width: pgBrowser.stdW.md + 'px', Init: function() { /* Avoid mulitple registration of menus */ if (this.proc_initialized) diff --git a/web/pgadmin/preferences/static/js/preferences.js b/web/pgadmin/preferences/static/js/preferences.js index c3385facc..88a50bd15 100644 --- a/web/pgadmin/preferences/static/js/preferences.js +++ b/web/pgadmin/preferences/static/js/preferences.js @@ -329,19 +329,8 @@ define('pgadmin.preferences', [ if (!d) return true; - /* Bind events to enable clicking anywhere and not only text, button */ - item.on('dblclick', function(e) { - e.preventDefault(); - e.stopPropagation(); - api.toggle(item); - }); - item.on('click', function(e) { - e.preventDefault(); - e.stopPropagation(); - api.select(item); - }); - // We will add the preferences in to the preferences data - // collection. + // We will add the preferences in to the preferences data + // collection. if (d.preferences && _.isArray(d.preferences)) { _.each(d.preferences, function(p) { preferences.add({ diff --git a/web/pgadmin/static/scss/_aci_tree.overrides.scss b/web/pgadmin/static/scss/_aci_tree.overrides.scss index c43aef967..e8de8eabc 100644 --- a/web/pgadmin/static/scss/_aci_tree.overrides.scss +++ b/web/pgadmin/static/scss/_aci_tree.overrides.scss @@ -8,10 +8,16 @@ } .aciTree.aciTreeFocus .aciTreeFocus > .aciTreeLine { background-color: $color-primary-light !important; + border-right: $active-border !important; } .aciTree .aciTreeSelected > .aciTreeLine { background-color: $color-primary-light !important; + border-color: $color-primary-light; + border-right: $active-border !important; + border-left: none !important; + border-top: none !important; + border-bottom: none !important; -webkit-border-radius: none !important; -moz-border-radius: none !important; border-radius: none !important;