From f1c84a4e3132669998d58443c87070282d9083a2 Mon Sep 17 00:00:00 2001 From: tneems Date: Fri, 27 Jun 2008 10:13:42 -0400 Subject: [PATCH] added ability to change default window.js ajax request method --- src/window.js | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/window.js b/src/window.js index 00cb9d4..15e979f 100755 --- a/src/window.js +++ b/src/window.js @@ -156,6 +156,7 @@ Control.Window = Class.create({ constrainToViewport: false, //ajax parameters: {}, + ajaxRequestMethod: 'post', onComplete: Prototype.emptyFunction, onSuccess: Prototype.emptyFunction, onFailure: Prototype.emptyFunction, @@ -288,7 +289,7 @@ Control.Window = Class.create({ if(this.options.indicator) this.showIndicator(); this.ajaxRequest = new Ajax.Request(this.href,{ - method: 'post', + method: this.options.ajaxRequestMethod, parameters: this.options.parameters, onComplete: function(request){ this.notify('onComplete',request); -- 1.5.5.1