diff options
author | wei <> | 2006-09-16 02:05:35 +0000 |
---|---|---|
committer | wei <> | 2006-09-16 02:05:35 +0000 |
commit | 887b919cae17ecc2c5e457dc884c0be4ffeb4cc2 (patch) | |
tree | 61eb1716259f0fd2a85aa19686b0b391741455ec /framework/Web | |
parent | b2e7a7e14094bddc8f5060d97f259058c0555323 (diff) |
Fixed #218
Diffstat (limited to 'framework/Web')
-rw-r--r-- | framework/Web/Javascripts/js/compressed/ajax.js | 3 | ||||
-rw-r--r-- | framework/Web/Javascripts/js/debug/ajax.js | 4 | ||||
-rw-r--r-- | framework/Web/Javascripts/prado/ajax3.js | 4 |
3 files changed, 10 insertions, 1 deletions
diff --git a/framework/Web/Javascripts/js/compressed/ajax.js b/framework/Web/Javascripts/js/compressed/ajax.js index 93bcbaac..60ca8df8 100644 --- a/framework/Web/Javascripts/js/compressed/ajax.js +++ b/framework/Web/Javascripts/js/compressed/ajax.js @@ -86,7 +86,8 @@ Ajax.Responders.register(Prado.CallbackRequest.Exception);});Prado.CallbackReque {return this.options['CausesValidation'];},setValidationGroup:function(group) {this.options['ValidationGroup']=group;},getValidationGroup:function() {return this.options['ValidationGroup'];},dispatch:function() -{Object.extend(this.options,{postBody:this._getPostData(),parameters:''});if(this.options.CausesValidation&&typeof(Prado.Validation)!="undefined") +{if(typeof tinyMCE!="undefined") +tinyMCE.triggerSave();Object.extend(this.options,{postBody:this._getPostData(),parameters:''});if(this.options.CausesValidation&&typeof(Prado.Validation)!="undefined") {var form=this.options.Form||Prado.Validation.getForm();if(Prado.Validation.validate(form,this.options.ValidationGroup,this)==false) return false;} if(this.options.HasPriority) diff --git a/framework/Web/Javascripts/js/debug/ajax.js b/framework/Web/Javascripts/js/debug/ajax.js index 8359309f..95c0a320 100644 --- a/framework/Web/Javascripts/js/debug/ajax.js +++ b/framework/Web/Javascripts/js/debug/ajax.js @@ -740,6 +740,10 @@ Prado.CallbackRequest.prototype = */
dispatch : function()
{
+ //trigger tinyMCE to save data.
+ if(typeof tinyMCE != "undefined")
+ tinyMCE.triggerSave();
+
//override parameter and postBody options.
Object.extend(this.options,
{
diff --git a/framework/Web/Javascripts/prado/ajax3.js b/framework/Web/Javascripts/prado/ajax3.js index 6a304caa..27822529 100644 --- a/framework/Web/Javascripts/prado/ajax3.js +++ b/framework/Web/Javascripts/prado/ajax3.js @@ -452,6 +452,10 @@ Prado.CallbackRequest.prototype = */
dispatch : function()
{
+ //trigger tinyMCE to save data.
+ if(typeof tinyMCE != "undefined")
+ tinyMCE.triggerSave();
+
//override parameter and postBody options.
Object.extend(this.options,
{
|