diff --git a/web/pgadmin/browser/static/js/node.ui.js b/web/pgadmin/browser/static/js/node.ui.js
index 7ee0ef8bf..c3968136e 100644
--- a/web/pgadmin/browser/static/js/node.ui.js
+++ b/web/pgadmin/browser/static/js/node.ui.js
@@ -314,10 +314,16 @@ function($, _, pgAdmin, Backbone, Backform, Alertify, Node) {
allowClear: true,
placeholder: 'Select from the list',
width: 'style'
- }
+ },
+ opt: {
+ label: null,
+ value: null,
+ image: null,
+ selected: false
+ }
}),
template: _.template(
- ''
+ ''
),
initialize: function () {
Backgrid.Extension.Select2Cell.prototype.initialize.apply(this, arguments);
@@ -390,81 +396,6 @@ function($, _, pgAdmin, Backbone, Backform, Alertify, Node) {
}
column.set('options_cached', true);
}
- },
- render: function() {
- /*
- * Let SelectCell render it, we will do our magic on the
- * select control in it.
- */
-
- var col = _.defaults(this.column.toJSON(), this.defaults),
- model = this.model, column = this.column,
- editable = Backgrid.callByNeed(col.editable, column, model),
- optionValues = _.clone(this.optionValues ||
- _.isFunction(this.column.get('options')) ?
- (this.column.get('options'))(this) :
- this.column.get('options')),
- select2_opts = _.defaults({}, col.select2, this.defaults.select2),
- evalF = function(f, col, m) {
- return (_.isFunction(f) ? !!f.apply(col, [m]) : !!f);
- };
-
- this.$el.empty();
-
- if (!_.isArray(optionValues)) throw new TypeError("optionValues must be an array");
-
- /*
- * Add empty option as Select2 requires any empty '