Author: SergeySmirnov
Date: 2007-11-13 13:24:23 -0500 (Tue, 13 Nov 2007)
New Revision: 3963
Added:
trunk/ui/effect/src/main/resources/org/richfaces/renderkit/html/script/controlUtils.js
Log:
cc file
Added:
trunk/ui/effect/src/main/resources/org/richfaces/renderkit/html/script/controlUtils.js
===================================================================
---
trunk/ui/effect/src/main/resources/org/richfaces/renderkit/html/script/controlUtils.js
(rev 0)
+++
trunk/ui/effect/src/main/resources/org/richfaces/renderkit/html/script/controlUtils.js 2007-11-13
18:24:23 UTC (rev 3963)
@@ -0,0 +1,22 @@
+if (!window.Richfaces) {
+window.Richfaces = {};
+}
+
+if (!Richfaces.componentControl) {
+ Richfaces.componentControl = {};
+}
+
+Richfaces.componentControl.attachEvent = function(attachTo, cevent, aevent, forAttr,
operation, params) {
+ jQuery(attachTo).bind(Richfaces.effectEventOnOut(aevent), function() {
+ jQuery( forAttr)[0].component[operation](cevent, params);
+ });
+};
+
+Richfaces.componentControl.performOperation = function( cevent, forAttr, operation,
params) {
+ jQuery( forAttr)[0].component[operation](cevent, params);
+};
+
+
+Richfaces.effectEventOnOut = function(ename) {
+ return ename.substr(0,2) == 'on' ? ename.substr(2) : ename;
+};
Show replies by date