From b32496f71ac373a0a5492a976ff660d616d7cc91 Mon Sep 17 00:00:00 2001 From: Khushboo Vashi Date: Wed, 10 Feb 2016 13:09:06 +0530 Subject: [PATCH] Allow to use the select2 with multiple selection. Changed the formatter used by NodeAjaxOptions Family controls to takes care the data returns by these controls. --- web/pgadmin/browser/static/js/node.ui.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/pgadmin/browser/static/js/node.ui.js b/web/pgadmin/browser/static/js/node.ui.js index 59c0f31aa..b84b6ee40 100644 --- a/web/pgadmin/browser/static/js/node.ui.js +++ b/web/pgadmin/browser/static/js/node.ui.js @@ -14,6 +14,9 @@ function($, _, pgAdmin, Backbone, Backform, Alertify, Node) { if (typeof(formattedData) == 'string') { return _.unescape(formattedData); } + if (formattedData instanceof Array) { + return JSON.stringify(JSON.parse(JSON.stringify(formattedData))); + } return JSON.parse(formattedData); } });