Subject: [pgAdmin4] Server Groups Delete patch

From: Seçkin Alan <[email-masked]>
Date: Fri, 15 Apr 2016 22:42:32 +0300

Drop server groups.

-- 
Seçkin ALAN
http://sckn.org
diff --git a/web/pgadmin/browser/templates/browser/js/node.js b/web/pgadmin/browser/templates/browser/js/node.js
index 0b52519..890c3dc 100644
--- a/web/pgadmin/browser/templates/browser/js/node.js
+++ b/web/pgadmin/browser/templates/browser/js/node.js
@@ -408,8 +408,9 @@ function($, _, S, pgAdmin, Menu, Backbone, Alertify, pgBrowser, Backform) {
       },
       // Delete the selected object
       delete_obj: function(args, item) {
-        var input = args || {};
+          var input = args || {'url':'drop'};
           obj = this,
+          obj.canDrop = true
           t = pgBrowser.tree,
           i = input.item || item || t.selected(),
           d = i && i.length == 1 ? t.itemData(i) : undefined;

-- 
Sent via pgadmin-hackers mailing list ([email-masked])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers

---

From: Dave Page <[email-masked]>
Date: Sat, 16 Apr 2016 09:55:58 +0100

Thanks - patch committed.

-- 
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company