From 35a13902512c623c6813880db62eff05029cb995 Mon Sep 17 00:00:00 2001 From: Khushboo Vashi Date: Fri, 1 Apr 2016 15:25:53 +0530 Subject: [PATCH] Resolved few issues in the collection controls. UniqueCollectionControl was not honouring the change events after execution of the function - 'render' more than one time. Change the label of the Add button to make it consistent with the Unique Collection Control. --- web/pgadmin/static/js/backform.pgadmin.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/pgadmin/static/js/backform.pgadmin.js b/web/pgadmin/static/js/backform.pgadmin.js index 60a93ac1a..e30a2786c 100644 --- a/web/pgadmin/static/js/backform.pgadmin.js +++ b/web/pgadmin/static/js/backform.pgadmin.js @@ -899,7 +899,7 @@ }, render: function() { // Clean up existing elements - this.cleanup(); + this.undelegateEvents(); var field = _.defaults(this.field.toJSON(), this.defaults), attributes = this.model.toJSON(), @@ -945,6 +945,7 @@ this.$el.html(grid).addClass(field.name); this.updateInvalid(); + this.delegateEvents(); return this; }, showGridControl: function(data) { @@ -1169,7 +1170,7 @@ showGridControl: function(data) { var gridHeader = ["
", " " , - "
"].join("\n"); gridBody = $("
").append(gridHeader);