Fixed some UX issue with the Import/Export tool.

- Couldn't click on the filename control once gets an error.
- Encoding is not in alphabetical order.
This commit is contained in:
Khushboo Vashi
2017-08-09 16:44:29 +05:30
committed by Ashesh Vashi
parent 5141debae7
commit c4ca781ce2
4 changed files with 19 additions and 3 deletions

View File

@@ -2201,6 +2201,16 @@
// Set selected value into the model
this.model.set(name, decodeURI(value));
},
clearInvalid: function() {
Backform.InputControl.prototype.clearInvalid.apply(this, arguments);
this.$el.removeClass("pgadmin-file-has-error");
return this;
},
updateInvalid: function() {
Backform.InputControl.prototype.updateInvalid.apply(this, arguments);
// Introduce a new class to fix the error icon placement on the control
this.$el.addClass("pgadmin-file-has-error");
}
});