mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Making minor changes:
* Start tracking changes immediatedly depends on the handler. * Attaching control with the filter in the NodeListByNameControl. * Generating proper data for the NodeListByNameControl.
This commit is contained in:
@@ -121,6 +121,8 @@ function($, _, pgAdmin, Backbone, Backform, Alertify, Node) {
|
||||
res = [],
|
||||
filter = self.field.get('filter') || function() { return true; };
|
||||
|
||||
filter = filter.bind(self);
|
||||
|
||||
_.each(rows, function(r) {
|
||||
if (filter(r)) {
|
||||
var l = (_.isFunction(node['node_label']) ?
|
||||
@@ -150,6 +152,8 @@ function($, _, pgAdmin, Backbone, Backform, Alertify, Node) {
|
||||
res = [],
|
||||
filter = self.field.get('filter') || function() { return true; };
|
||||
|
||||
filter = filter.bind(self);
|
||||
|
||||
_.each(rows, function(r) {
|
||||
if (filter(r)) {
|
||||
var l = (_.isFunction(node['node_label']) ?
|
||||
@@ -158,7 +162,7 @@ function($, _, pgAdmin, Backbone, Backform, Alertify, Node) {
|
||||
image= (_.isFunction(node['node_image']) ?
|
||||
(node['node_image']).apply(node, [r, self.model, self]) : node.type);
|
||||
res.push({
|
||||
'value': l,
|
||||
'value': r.label,
|
||||
'node': image,
|
||||
'label': l
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user