summaryrefslogtreecommitdiff
path: root/framework/Web/Javascripts/js/debug/ajax.js
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Web/Javascripts/js/debug/ajax.js')
-rw-r--r--framework/Web/Javascripts/js/debug/ajax.js34
1 files changed, 17 insertions, 17 deletions
diff --git a/framework/Web/Javascripts/js/debug/ajax.js b/framework/Web/Javascripts/js/debug/ajax.js
index dc35043d..77df7bc2 100644
--- a/framework/Web/Javascripts/js/debug/ajax.js
+++ b/framework/Web/Javascripts/js/debug/ajax.js
@@ -2021,7 +2021,7 @@ Prado.WebUI.CallbackControl = Class.extend(Prado.WebUI.PostBackControl,
{
onPostBack : function(event, options)
{
- request = new Prado.CallbackRequest(options.EventTarget, options);
+ var request = new Prado.CallbackRequest(options.EventTarget, options);
request.dispatch();
Event.stop(event);
}
@@ -2041,7 +2041,7 @@ Prado.WebUI.TActiveImageButton = Class.extend(Prado.WebUI.TImageButton,
onPostBack : function(event, options)
{
this.addXYInput(event,options);
- request = new Prado.CallbackRequest(options.EventTarget, options);
+ var request = new Prado.CallbackRequest(options.EventTarget, options);
request.dispatch();
Event.stop(event);
}
@@ -2053,7 +2053,7 @@ Prado.WebUI.TActiveCheckBox = Class.extend(Prado.WebUI.CallbackControl,
{
onPostBack : function(event, options)
{
- request = new Prado.CallbackRequest(options.EventTarget, options);
+ var request = new Prado.CallbackRequest(options.EventTarget, options);
if(request.dispatch()==false)
Event.stop(event);
}
@@ -2097,7 +2097,7 @@ Prado.WebUI.TActiveTextBox = Class.extend(Prado.WebUI.TTextBox,
doCallback : function(event, options)
{
- request = new Prado.CallbackRequest(options.EventTarget, options);
+ var request = new Prado.CallbackRequest(options.EventTarget, options);
request.dispatch();
Event.stop(event);
}
@@ -2126,7 +2126,7 @@ Prado.WebUI.TAutoComplete = Class.extend(Prado.WebUI.TAutoComplete,
{
if(!this.active)
{
- request = new Prado.CallbackRequest(this.options.EventTarget, options);
+ var request = new Prado.CallbackRequest(this.options.EventTarget, options);
request.dispatch();
Event.stop(event);
}
@@ -2144,13 +2144,13 @@ Prado.WebUI.TAutoComplete = Class.extend(Prado.WebUI.TAutoComplete,
getUpdatedChoices : function()
{
- options = new Array(this.getToken(),"__TAutoComplete_onSuggest__");
+ var options = new Array(this.getToken(),"__TAutoComplete_onSuggest__");
Prado.Callback(this.options.EventTarget, options, null, this.options);
},
onComplete : function(request, boundary)
{
- result = Prado.Element.extractContent(request.transport.responseText, boundary);
+ var result = Prado.Element.extractContent(request.transport.responseText, boundary);
if(typeof(result) == "string" && result.length > 0)
this.updateChoices(result);
}
@@ -2194,7 +2194,7 @@ Prado.WebUI.TTimeTriggeredCallback = Base.extend(
onTimerEvent : function()
{
this.options.params = this.timeout/1000;
- request = new Prado.CallbackRequest(this.options.EventTarget, this.options);
+ var request = new Prado.CallbackRequest(this.options.EventTarget, this.options);
request.dispatch();
},
@@ -2258,7 +2258,7 @@ Prado.WebUI.ActiveListControl = Base.extend(
doCallback : function(event)
{
- request = new Prado.CallbackRequest(this.options.EventTarget, this.options);
+ var request = new Prado.CallbackRequest(this.options.EventTarget, this.options);
request.dispatch();
Event.stop(event);
}
@@ -2275,14 +2275,14 @@ Prado.WebUI.TEventTriggeredCallback = Base.extend(
constructor : function(options)
{
this.options = options;
- element = $(options['ControlID']);
+ var element = $(options['ControlID']);
if(element)
Event.observe(element, this.getEventName(element), this.doCallback.bind(this));
},
getEventName : function(element)
{
- name = this.options.EventName;
+ var name = this.options.EventName;
if(typeof(name) == "undefined" && element.type)
{
switch (element.type.toLowerCase())
@@ -2300,7 +2300,7 @@ Prado.WebUI.TEventTriggeredCallback = Base.extend(
doCallback : function(event)
{
- request = new Prado.CallbackRequest(this.options.EventTarget, this.options);
+ var request = new Prado.CallbackRequest(this.options.EventTarget, this.options);
request.dispatch();
if(this.options.StopEvent == true)
Event.stop(event);
@@ -2320,7 +2320,7 @@ Prado.WebUI.TValueTriggeredCallback = Base.extend(
{
this.options = options;
this.options.PropertyName = this.options.PropertyName || 'value';
- element = $(options['ControlID']);
+ var element = $(options['ControlID']);
this.value = element ? element[this.options.PropertyName] : undefined;
Prado.WebUI.TValueTriggeredCallback.register(this);
this.startObserving();
@@ -2339,10 +2339,10 @@ Prado.WebUI.TValueTriggeredCallback = Base.extend(
checkChanges : function()
{
- element = $(this.options.ControlID);
+ var element = $(this.options.ControlID);
if(element)
{
- value = element[this.options.PropertyName];
+ var value = element[this.options.PropertyName];
if(this.value != value)
{
this.doCallback(this.value, value);
@@ -2359,8 +2359,8 @@ Prado.WebUI.TValueTriggeredCallback = Base.extend(
doCallback : function(oldValue, newValue)
{
- request = new Prado.CallbackRequest(this.options.EventTarget, this.options);
- param = {'OldValue' : oldValue, 'NewValue' : newValue};
+ var request = new Prado.CallbackRequest(this.options.EventTarget, this.options);
+ var param = {'OldValue' : oldValue, 'NewValue' : newValue};
request.setCallbackParameter(param);
request.dispatch();
}