mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Handle special chars and spaces properly in select2 controls. Fixes #1292
This commit is contained in:
committed by
Dave Page
parent
4bb849c58c
commit
4267545e08
@@ -1787,10 +1787,10 @@
|
||||
var Select2Formatter = function() {};
|
||||
_.extend(Select2Formatter.prototype, {
|
||||
fromRaw: function(rawData, model) {
|
||||
return JSON.parse(JSON.stringify(_.escape(rawData)));
|
||||
return encodeURIComponent(rawData);
|
||||
},
|
||||
toRaw: function(formattedData, model) {
|
||||
return formattedData;
|
||||
return decodeURIComponent(formattedData);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user