Author: A.Skokov
Date: 2007-05-29 06:21:49 -0400 (Tue, 29 May 2007)
New Revision: 915
Modified:
trunk/richfaces/suggestionbox/src/main/java/org/richfaces/renderkit/html/SuggestionBoxRenderer.java
trunk/richfaces/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/suggestionbox.js
Log:
Exadel replaced with RichFaces
Modified:
trunk/richfaces/suggestionbox/src/main/java/org/richfaces/renderkit/html/SuggestionBoxRenderer.java
===================================================================
---
trunk/richfaces/suggestionbox/src/main/java/org/richfaces/renderkit/html/SuggestionBoxRenderer.java 2007-05-28
20:02:22 UTC (rev 914)
+++
trunk/richfaces/suggestionbox/src/main/java/org/richfaces/renderkit/html/SuggestionBoxRenderer.java 2007-05-29
10:21:49 UTC (rev 915)
@@ -300,7 +300,7 @@
StringBuffer script = new StringBuffer(" new ");
// Build ajax function call
JSFunction submitSuggest = AjaxRendererUtils.buildAjaxFunction(
- component, context, "Exadel.Suggestion");
+ component, context, "RichFaces.Suggestion");
UIComponent targetComponent = getTarget(component);
submitSuggest.addParameter(targetComponent.getClientId(context));
submitSuggest.addParameter(component.getClientId(context));
Modified:
trunk/richfaces/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/suggestionbox.js
===================================================================
---
trunk/richfaces/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/suggestionbox.js 2007-05-28
20:02:22 UTC (rev 914)
+++
trunk/richfaces/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/suggestionbox.js 2007-05-29
10:21:49 UTC (rev 915)
@@ -1,4 +1,4 @@
-if (!Exadel) var Exadel = {};
+if (!RichFaces) var RichFaces = {};
var Suggestion = {};
Suggestion.Base = function() {
};
@@ -39,7 +39,7 @@
|| update.style.position
== 'absolute') {
update.style.position = 'absolute';
- Exadel.Position.smartClone(element, update,
options);
+ RichFaces.Position.smartClone(element, update,
options);
}
if (!window.opera) {
Effect.Appear(update, {duration:0.15});
@@ -297,7 +297,7 @@
onClick: function(event) {
this.wasScroll = false;
- this.wasBlur = false;
+ this.wasBlur = false;
var element = Event.findElement(event, 'TR');
this.index = element.autocompleteIndex;
this.selectEntry(event);
@@ -307,7 +307,7 @@
onBlur: function(event) {
if (this.isUnloaded()) return;
if (!this.active) return;
- var offsets = Exadel.Position.calcOffsets(this.update);
+ var offsets = RichFaces.Position.calcOffsets(this.update);
if (RichFaces.navigatorType() != "MSIE") {
offsets["x"] = 0;
offsets["y"] = 0;
@@ -322,7 +322,7 @@
}
// needed to make click events working
setTimeout(this.hide.bind(this), 250);
- this.wasBlur = true;
+ this.wasBlur = true;
},
onScroll: function(event) {
@@ -330,7 +330,7 @@
if(this.element) {
this.element.focus();
this.wasScroll = true;
- this.wasBlur = false;
+ this.wasBlur = false;
}
}
},
@@ -533,8 +533,8 @@
}
-Exadel.Suggestion = Class.create();
-Object.extend(Object.extend(Exadel.Suggestion.prototype, Suggestion.Base.prototype), {
+RichFaces.Suggestion = Class.create();
+Object.extend(Object.extend(RichFaces.Suggestion.prototype, Suggestion.Base.prototype),
{
initialize: function(containerId, actionUrl, element, content, onsubmit, options) {
var update = options.popup || 'ac1update';
if (!$(update)) this.create(element, update, content, options);
@@ -572,7 +572,7 @@
if (!this.update.style.position || this.update.style.position
== 'absolute') {
this.update.style.position = 'absolute';
- Exadel.Position.smartClone(this.element, this.update, this.options);
+ RichFaces.Position.smartClone(this.element, this.update, this.options);
}
this.updateChoices();
LOG.debug("Choices updated");
@@ -599,7 +599,7 @@
});
-Exadel.Position = {
+RichFaces.Position = {
source: null,
target: null,
smartClone: function(source, target, options) {
@@ -614,7 +614,7 @@
/*
http://jira.exadel.com/browse/RFA-236
- var pos = Exadel.SmartPosition.getPosition(this.source, this.target, options);
+ var pos = RichFaces.SmartPosition.getPosition(this.source, this.target,
options);
if (RichFaces.navigatorType() == "MSIE") {
var offsets = this.calcOffsets(this.source);