From 623ff4f91f96d8f981b28343ce315881f5d8290f Mon Sep 17 00:00:00 2001 From: Fahar Abbas Date: Mon, 2 Dec 2019 09:35:20 +0530 Subject: [PATCH] =?UTF-8?q?Allow=C2=A0drag=20and=20drop=20functionality=20?= =?UTF-8?q?for=20all=20the=20nodes=20under=20the=20database=20node,=20excl?= =?UTF-8?q?uding=20collection=20nodes.=20Fixes=20#4435?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/en_US/release_notes_4_16.rst | 1 + web/pgadmin/browser/static/js/browser.js | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/en_US/release_notes_4_16.rst b/docs/en_US/release_notes_4_16.rst index 491c0d921..d701f2edf 100644 --- a/docs/en_US/release_notes_4_16.rst +++ b/docs/en_US/release_notes_4_16.rst @@ -9,6 +9,7 @@ This release contains a number of bug fixes and new features since the release o New features ************ +| `Issue #4435 `_ - Allow drag and drop functionality for all the nodes under the database node, excluding collection nodes. Housekeeping ************ diff --git a/web/pgadmin/browser/static/js/browser.js b/web/pgadmin/browser/static/js/browser.js index 8a258478e..205f2c122 100644 --- a/web/pgadmin/browser/static/js/browser.js +++ b/web/pgadmin/browser/static/js/browser.js @@ -104,12 +104,15 @@ define('pgadmin.browser', [ b.treeMenu.register($('#tree')); b.treeMenu.registerDraggableType({ - 'table partition type sequence package view mview foreign_table edbvar' : (data, item)=>{ + 'collation domain domain_constraints fts_configuration fts_dictionary fts_parser fts_template synonym table partition type sequence package view mview foreign_table edbvar' : (data, item)=>{ return pgadminUtils.fully_qualify(b, data, item); }, - 'schema column' : (data)=>{ + 'schema column database cast event_trigger extension language foreign_data_wrapper foreign_server user_mapping compound_trigger index index_constraint primary_key unique_constraint check_constraint exclusion_constraint foreign_key rule' : (data)=>{ return pgadminUtils.quote_ident(data._label); }, + 'trigger trigger_function' : (data)=>{ + return data._label; + }, 'edbfunc function edbproc procedure' : (data, item)=>{ let newData = {...data}, parsedFunc = null,