Handle control visibility properly in javascript strict mode.

This commit is contained in:
Khushboo Vashi
2017-07-26 12:55:46 +01:00
committed by Dave Page
parent 1fa9648a21
commit d1e7254fbd
2 changed files with 13 additions and 13 deletions

View File

@@ -174,10 +174,10 @@ define('pgadmin.node.role', [
}
// Clean up first
this.$el.removeClass(Backform.hiddenClassname);
this.$el.removeClass(Backform.hiddenClassName);
if (!data.visible)
this.$el.addClass(Backform.hiddenClassname);
this.$el.addClass(Backform.hiddenClassName);
this.$el.html(this.template(data)).addClass(field.name);
this.updateInvalid();