BUG 0000 enable/disable buttons SOLVED
- Was added enable/disble for the buttons while running the validation of passwords
This commit is contained in:
@@ -457,6 +457,8 @@ Ext.onReady(function() {
|
|||||||
listeners: {
|
listeners: {
|
||||||
blur : function(ob)
|
blur : function(ob)
|
||||||
{
|
{
|
||||||
|
Ext.getCmp('saveB').disable();
|
||||||
|
Ext.getCmp('cancelB').disable();
|
||||||
var spanAjax = '<span style="font: 9px tahoma,arial,helvetica,sans-serif;">';
|
var spanAjax = '<span style="font: 9px tahoma,arial,helvetica,sans-serif;">';
|
||||||
var imageAjax = '<img width="13" height="13" border="0" src="/images/ajax-loader.gif">';
|
var imageAjax = '<img width="13" height="13" border="0" src="/images/ajax-loader.gif">';
|
||||||
var labelAjax = _('ID_PASSWORD_TESTING');
|
var labelAjax = _('ID_PASSWORD_TESTING');
|
||||||
@@ -482,7 +484,9 @@ Ext.onReady(function() {
|
|||||||
flagPoliciesPassword = false;
|
flagPoliciesPassword = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
Ext.getCmp('passwordReview').setText(resp.DESCRIPTION, false);
|
Ext.getCmp('passwordReview').setText(resp.DESCRIPTION, false);
|
||||||
|
Ext.getCmp('saveB').enable();
|
||||||
|
Ext.getCmp('cancelB').enable();
|
||||||
},
|
},
|
||||||
failure: function () {
|
failure: function () {
|
||||||
Ext.MessageBox.show({
|
Ext.MessageBox.show({
|
||||||
@@ -492,6 +496,8 @@ Ext.onReady(function() {
|
|||||||
animEl: 'mb9',
|
animEl: 'mb9',
|
||||||
icon: Ext.MessageBox.ERROR
|
icon: Ext.MessageBox.ERROR
|
||||||
});
|
});
|
||||||
|
Ext.getCmp('saveB').enable();
|
||||||
|
Ext.getCmp('cancelB').enable();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -651,12 +657,14 @@ Ext.onReady(function() {
|
|||||||
buttons : [
|
buttons : [
|
||||||
{
|
{
|
||||||
text : _('ID_SAVE'),
|
text : _('ID_SAVE'),
|
||||||
|
id : 'saveB',
|
||||||
handler: saveUser
|
handler: saveUser
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text : _('ID_CANCEL'),
|
text : _('ID_CANCEL'),
|
||||||
|
id : 'cancelB',
|
||||||
handler : function(){
|
handler : function(){
|
||||||
if (!infoMode) {
|
if (!infoMode) {
|
||||||
location.href = 'users_List';
|
location.href = 'users_List';
|
||||||
|
|||||||
Reference in New Issue
Block a user