diff options
author | wei <> | 2006-10-18 23:38:44 +0000 |
---|---|---|
committer | wei <> | 2006-10-18 23:38:44 +0000 |
commit | 80c82147fc8143eb45ef2000a49fabac889a1615 (patch) | |
tree | 42cfb960ec7bc72c6b657ff532abafde417eedd9 /framework/Web/Javascripts/prado | |
parent | af832a5a9018c7dcc2f24111d82049902269fc53 (diff) |
fixed onFailure and onSuccess in TInPlaceTextBox
Diffstat (limited to 'framework/Web/Javascripts/prado')
-rw-r--r-- | framework/Web/Javascripts/prado/inlineeditor.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/framework/Web/Javascripts/prado/inlineeditor.js b/framework/Web/Javascripts/prado/inlineeditor.js index 719c525d..de74585f 100644 --- a/framework/Web/Javascripts/prado/inlineeditor.js +++ b/framework/Web/Javascripts/prado/inlineeditor.js @@ -203,6 +203,8 @@ Prado.WebUI.TInPlaceTextBox = Base.extend( this.editField.disabled = false;
this.editField.value = this.getText();
Prado.Element.focus(this.editField);
+ if(typeof(this.options.onSuccess)=="function")
+ this.options.onSuccess(sender,parameter);
},
onloadExternalTextFailure : function(request, parameter)
@@ -210,6 +212,8 @@ Prado.WebUI.TInPlaceTextBox = Base.extend( this.isSaving = false;
this.isEditing = false;
this.showLabel();
+ if(typeof(this.options.onFailure)=="function")
+ this.options.onFailure(sender,parameter);
},
/**
@@ -225,6 +229,8 @@ Prado.WebUI.TInPlaceTextBox = Base.extend( this.showLabel();
this.element.innerHTML = parameter == null ? this.editField.value : parameter;
this.editField.disabled = false;
+ if(typeof(this.options.onSuccess)=="function")
+ this.options.onSuccess(sender,parameter);
},
onTextChangedFailure : function(sender, parameter)
@@ -232,6 +238,8 @@ Prado.WebUI.TInPlaceTextBox = Base.extend( this.editField.disabled = false;
this.isSaving = false;
this.isEditing = false;
+ if(typeof(this.options.onFailure)=="function")
+ this.options.onFailure(sender,parameter);
}
},
{
|