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/js/debug | |
| parent | af832a5a9018c7dcc2f24111d82049902269fc53 (diff) | |
fixed onFailure and onSuccess in TInPlaceTextBox
Diffstat (limited to 'framework/Web/Javascripts/js/debug')
| -rw-r--r-- | framework/Web/Javascripts/js/debug/ajax.js | 8 | 
1 files changed, 8 insertions, 0 deletions
| diff --git a/framework/Web/Javascripts/js/debug/ajax.js b/framework/Web/Javascripts/js/debug/ajax.js index 8b75c2ad..0f2d1c1b 100644 --- a/framework/Web/Javascripts/js/debug/ajax.js +++ b/framework/Web/Javascripts/js/debug/ajax.js @@ -2586,6 +2586,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)
 @@ -2593,6 +2595,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);
  	},
  	/**
 @@ -2608,6 +2612,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)
 @@ -2615,6 +2621,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);
  	}
  },
  {
 | 
