[richfaces-svn-commits] JBoss Rich Faces SVN: r2178 - in trunk: ui/inputnumber-slider/src/main/resources/org/richfaces/renderkit/html/script and 6 other directories.
richfaces-svn-commits at lists.jboss.org
richfaces-svn-commits at lists.jboss.org
Thu Aug 9 11:42:09 EDT 2007
Author: sergeyhalipov
Date: 2007-08-09 11:42:09 -0400 (Thu, 09 Aug 2007)
New Revision: 2178
Modified:
trunk/framework/impl/src/main/javascript/ajaxjsf/imagecache.js
trunk/framework/impl/src/main/javascript/ajaxjsf/smartposition.js
trunk/ui/inputnumber-slider/src/main/resources/org/richfaces/renderkit/html/script/SliderScript.js
trunk/ui/inputnumber-slider/src/main/templates/inputNumberSlider.jspx
trunk/ui/inputnumber-spinner/src/main/resources/org/richfaces/renderkit/html/script/SpinnerScript.js
trunk/ui/inputnumber-spinner/src/main/templates/inputNumberSpinner.jspx
trunk/ui/panelbar/src/main/resources/org/richfaces/renderkit/html/scripts/panelbar.js
trunk/ui/panelbar/src/main/templates/panelBar.jspx
trunk/ui/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/scriptaculo.js
Log:
http://jira.jboss.com/jira/browse/RF-576
Modified: trunk/framework/impl/src/main/javascript/ajaxjsf/imagecache.js
===================================================================
--- trunk/framework/impl/src/main/javascript/ajaxjsf/imagecache.js 2007-08-09 15:02:07 UTC (rev 2177)
+++ trunk/framework/impl/src/main/javascript/ajaxjsf/imagecache.js 2007-08-09 15:42:09 UTC (rev 2178)
@@ -1,6 +1,6 @@
-if (!Exadel) var Exadel = {};
+if (!Richfaces) var Richfaces = {};
-Exadel.setImages =
+Richfaces.setImages =
function (element, images) {
element = $(element);
if (!element) return;
Modified: trunk/framework/impl/src/main/javascript/ajaxjsf/smartposition.js
===================================================================
--- trunk/framework/impl/src/main/javascript/ajaxjsf/smartposition.js 2007-08-09 15:02:07 UTC (rev 2177)
+++ trunk/framework/impl/src/main/javascript/ajaxjsf/smartposition.js 2007-08-09 15:42:09 UTC (rev 2178)
@@ -1,6 +1,6 @@
-if (!Exadel) {var Exadel = {};}
-if (!Exadel.SmartPosition )
-Exadel.SmartPosition = {
+if (!Richfaces) {var Richfaces = {};}
+if (!Richfaces.SmartPosition )
+Richfaces.SmartPosition = {
options: $H({"positionX": ["right","left","center"], "positionY": ["bottom","top"], positionFloat: true}),
getBase: function() {
return (document.compatMode && document.compatMode.toLowerCase() == "css1compat" &&
Modified: trunk/ui/inputnumber-slider/src/main/resources/org/richfaces/renderkit/html/script/SliderScript.js
===================================================================
--- trunk/ui/inputnumber-slider/src/main/resources/org/richfaces/renderkit/html/script/SliderScript.js 2007-08-09 15:02:07 UTC (rev 2177)
+++ trunk/ui/inputnumber-slider/src/main/resources/org/richfaces/renderkit/html/script/SliderScript.js 2007-08-09 15:42:09 UTC (rev 2178)
@@ -1,6 +1,6 @@
-if(!Exadel) var Exadel = {};
-Exadel.Slider = Class.create();
-Exadel.Slider.prototype = {
+if(!Richfaces) var Richfaces = {};
+Richfaces.Slider = Class.create();
+Richfaces.Slider.prototype = {
initialize: function(handle, track, tip, table, handleSelectedClass, options) {
var slider = this;
this.handle = $( handle );
Modified: trunk/ui/inputnumber-slider/src/main/templates/inputNumberSlider.jspx
===================================================================
--- trunk/ui/inputnumber-slider/src/main/templates/inputNumberSlider.jspx 2007-08-09 15:02:07 UTC (rev 2177)
+++ trunk/ui/inputnumber-slider/src/main/templates/inputNumberSlider.jspx 2007-08-09 15:42:09 UTC (rev 2178)
@@ -166,7 +166,7 @@
</table>
</div>
<script type="text/javascript">
- new Exadel.Slider(
+ new Richfaces.Slider(
"#{clientId}Handle",
"#{clientId}Track",
"#{clientId}Tip",
Modified: trunk/ui/inputnumber-spinner/src/main/resources/org/richfaces/renderkit/html/script/SpinnerScript.js
===================================================================
--- trunk/ui/inputnumber-spinner/src/main/resources/org/richfaces/renderkit/html/script/SpinnerScript.js 2007-08-09 15:02:07 UTC (rev 2177)
+++ trunk/ui/inputnumber-spinner/src/main/resources/org/richfaces/renderkit/html/script/SpinnerScript.js 2007-08-09 15:42:09 UTC (rev 2178)
@@ -1,8 +1,8 @@
-if (!Exadel) var Exadel = {};
+if (!Richfaces) var Richfaces = {};
-Exadel.Spinner = Class.create();
-Exadel.Spinner.prototype = {
+Richfaces.Spinner = Class.create();
+Richfaces.Spinner.prototype = {
initialize: function( containers, options, data ,events, images) {
this.content = $ (containers.edit);
@@ -120,7 +120,7 @@
var downImg = this._getDirectChildrenByTag(buttonDown,'INPUT')[0];
}
- this.controls = new Exadel.Spinner.Controls( this, {button:buttonUp,img:upImg}, {button:buttonDown,img:downImg}, edit );
+ this.controls = new Richfaces.Spinner.Controls( this, {button:buttonUp,img:upImg}, {button:buttonDown,img:downImg}, edit );
},
_getDirectChildrenByTag: function( e, tagName ) {
@@ -141,8 +141,8 @@
}
};
-Exadel.Spinner.Controls = Class.create();
-Exadel.Spinner.Controls.prototype = {
+Richfaces.Spinner.Controls = Class.create();
+Richfaces.Spinner.Controls.prototype = {
initialize: function( spinner, up, down, edit ) {
this.spinner= spinner;
@@ -329,4 +329,4 @@
this.edit.fireEvent('on' + e);
}
}
-}
\ No newline at end of file
+}
Modified: trunk/ui/inputnumber-spinner/src/main/templates/inputNumberSpinner.jspx
===================================================================
--- trunk/ui/inputnumber-spinner/src/main/templates/inputNumberSpinner.jspx 2007-08-09 15:02:07 UTC (rev 2177)
+++ trunk/ui/inputnumber-spinner/src/main/templates/inputNumberSpinner.jspx 2007-08-09 15:42:09 UTC (rev 2178)
@@ -92,7 +92,7 @@
</tbody>
</table>
<script type="text/javascript">
- new Exadel.Spinner(
+ new Richfaces.Spinner(
{
edit:"#{clientId}Edit",
buttons:"#{clientId}Buttons",
Modified: trunk/ui/panelbar/src/main/resources/org/richfaces/renderkit/html/scripts/panelbar.js
===================================================================
--- trunk/ui/panelbar/src/main/resources/org/richfaces/renderkit/html/scripts/panelbar.js 2007-08-09 15:02:07 UTC (rev 2177)
+++ trunk/ui/panelbar/src/main/resources/org/richfaces/renderkit/html/scripts/panelbar.js 2007-08-09 15:42:09 UTC (rev 2178)
@@ -1,8 +1,8 @@
-if (!Exadel) var Exadel = {};
+if (!Richfaces) var Richfaces = {};
-Exadel.PanelBar = Class.create();
+Richfaces.PanelBar = Class.create();
-Exadel.PanelBar.prototype = {
+Richfaces.PanelBar.prototype = {
initialize: function(panelId, onclick) {
@@ -91,7 +91,7 @@
var rows=this._getDirectChildrenByTag(this.panel,'DIV');
for(var i=0; i<rows.length; i++) {
var subrows=this._getDirectChildrenByTag(rows[i],'DIV');
- this.slides.push(new Exadel.PanelBar.Slide(this,rows[i],subrows[0],subrows[1],subrows[2],i,this.onclick)); //ndex
+ this.slides.push(new Richfaces.PanelBar.Slide(this,rows[i],subrows[0],subrows[1],subrows[2],i,this.onclick)); //ndex
}
},
@@ -120,8 +120,8 @@
}
-Exadel.PanelBar.Slide = Class.create();
-Exadel.PanelBar.Slide.prototype = {
+Richfaces.PanelBar.Slide = Class.create();
+Richfaces.PanelBar.Slide.prototype = {
initialize: function(slidePanel,item,header,header_act,content,index,onclick){
Modified: trunk/ui/panelbar/src/main/templates/panelBar.jspx
===================================================================
--- trunk/ui/panelbar/src/main/templates/panelBar.jspx 2007-08-09 15:02:07 UTC (rev 2177)
+++ trunk/ui/panelbar/src/main/templates/panelBar.jspx 2007-08-09 15:42:09 UTC (rev 2178)
@@ -20,7 +20,7 @@
<f:clientid var="clientId" />
<input type="hidden" name="#{clientId}" id="#{clientId}_panelBarInput"
value="#{this:expanded(context, component)}"/>
- <script type="text/javascript">new Exadel.PanelBar("#{clientId}", "#{component.attributes['onclick']}");</script>
+ <script type="text/javascript">new Richfaces.PanelBar("#{clientId}", "#{component.attributes['onclick']}");</script>
</div>
</f:root>
Modified: trunk/ui/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/scriptaculo.js
===================================================================
--- trunk/ui/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/scriptaculo.js 2007-08-09 15:02:07 UTC (rev 2177)
+++ trunk/ui/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/scriptaculo.js 2007-08-09 15:42:09 UTC (rev 2178)
@@ -2032,11 +2032,11 @@
/*
Support for Drag and Drop in AJAX-JSF environment.
*/
-if (!Exadel) {
- var Exadel = {};
+if (!Richfaces) {
+ var Richfaces = {};
}
-if (!Exadel.AJAX) {
- Exadel.AJAX = {};
+if (!Richfaces.AJAX) {
+ Richfaces.AJAX = {};
}
/**
@@ -2055,9 +2055,9 @@
* hoverDepth
* hoverDuration
*/
-Exadel.AJAX.addDropable = function(containerId, form, element, options) {
+Richfaces.AJAX.addDropable = function(containerId, form, element, options) {
options.onDrop = function(element, dropon, dropEvent) {
- Exadel.AJAX.dropEffect(element);
+ Richfaces.AJAX.dropEffect(element);
options.element = element;
options.dropon = dropon;
options.dropEvent = dropEvent;
@@ -2071,7 +2071,7 @@
if (arguments.length < 6) {
Droppables.isInDropPhase = true;
}
- Exadel.AJAX.submitDrop(containerId, form, dropEvent, options);
+ Richfaces.AJAX.submitDrop(containerId, form, dropEvent, options);
};
if (options.oncomplete && typeof options.oncomplete == 'function') {
options.onajaxComplete = options.oncomplete;
@@ -2091,7 +2091,7 @@
var drop = Droppables.add(element, options);
}
-Exadel.AJAX.dropEffect = function(element) {
+Richfaces.AJAX.dropEffect = function(element) {
var _clone = element.cloneNode(true);
var isCursor = element.style.visibility.toLowerCase() == "hidden";
if (isCursor) _clone.style.visibility = "";
@@ -2153,7 +2153,7 @@
* effectDuration
*
*/
-Exadel.AJAX.addDragable = function(element, options) {
+Richfaces.AJAX.addDragable = function(element, options) {
// TODO - build different effects
options.reverteffect = function(element) {
element.style.top = 0;
@@ -2168,7 +2168,7 @@
}
}
-Exadel.AJAX.addClickDropable = function(element, options) {
+Richfaces.AJAX.addClickDropable = function(element, options) {
if (Droppables) {
Droppables.getForElement =
function(element) {
@@ -2198,7 +2198,7 @@
*
*
*/
-Exadel.AJAX.submitDrop = function(containerId, form, event, options) {
+Richfaces.AJAX.submitDrop = function(containerId, form, event, options) {
var parameters = options.parameters || {};
if (options.element && options.element._parameters) {
for (var k in options.element._parameters) {
More information about the richfaces-svn-commits
mailing list