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.
This commit is contained in:
Khushboo Vashi
2016-02-10 13:09:06 +05:30
committed by Ashesh Vashi
parent a02b1a4813
commit b32496f71a

View File

@@ -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);
}
});