mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-06-18 17:30:27 +02:00
improve sonia.repository reset function
This commit is contained in:
@@ -393,6 +393,18 @@ Sonia.repository.FormPanel = Ext.extend(Sonia.rest.FormPanel,{
|
||||
alert( 'failure' );
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
reset: function(){
|
||||
if ( debug ){
|
||||
console.debug( 'reset form' );
|
||||
}
|
||||
this.getForm().reset();
|
||||
if ( this.item != null ){
|
||||
this.permissionStore.loadData( this.item );
|
||||
} else {
|
||||
this.permissionStore.removeAll();
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user