mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Handle control visibility properly in javascript strict mode.
This commit is contained in:
committed by
Dave Page
parent
1fa9648a21
commit
d1e7254fbd
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user