summaryrefslogtreecommitdiff
path: root/framework/Web/Javascripts/prado/inlineeditor.js
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Web/Javascripts/prado/inlineeditor.js')
-rw-r--r--framework/Web/Javascripts/prado/inlineeditor.js8
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);
}
},
{