Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

Commit

Permalink
NEXUS-1338: delayed rendering fix for disabled fields
Browse files Browse the repository at this point in the history
git-svn-id: file:///opt/svn/repositories/sonatype.org/nexus/branches/nexus-1.2.x/nexus@2953 2aa8b3fc-8ebb-4439-a84f-95066eaea8ab
  • Loading branch information
dip committed Jan 8, 2009
1 parent 151d4b1 commit caecb32
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions nexus-webapp/src/main/webapp/js/extensions/ext-override.js
Expand Up @@ -475,6 +475,11 @@ Ext.override( Ext.form.Field, {
Ext.override( Ext.form.TextField, {
onEnable : function(){
this.getActionEl().removeClass(this.disabledClass);
if ( this.actionMode == 'container' ) {
// in some cases the action mode seems to change after rendering,
// so we may need to clean up the disabled class from this.el
this.el.removeClass(this.disabledClass);
}
this.el.dom.readOnly = false;
},
onDisable : function(){
Expand Down

0 comments on commit caecb32

Please sign in to comment.