myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From we...@apache.org
Subject svn commit: r433380 - /myfaces/tomahawk/trunk/sandbox/core/src/main/resources/org/apache/myfaces/custom/effect/resource/fader.js
Date Mon, 21 Aug 2006 21:57:39 GMT
Author: werpu
Date: Mon Aug 21 14:57:39 2006
New Revision: 433380

URL: http://svn.apache.org/viewvc?rev=433380&view=rev
Log:
added first prototype replacement class from dojo for the effects tag

Added:
    myfaces/tomahawk/trunk/sandbox/core/src/main/resources/org/apache/myfaces/custom/effect/resource/fader.js

Added: myfaces/tomahawk/trunk/sandbox/core/src/main/resources/org/apache/myfaces/custom/effect/resource/fader.js
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/core/src/main/resources/org/apache/myfaces/custom/effect/resource/fader.js?rev=433380&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/core/src/main/resources/org/apache/myfaces/custom/effect/resource/fader.js
(added)
+++ myfaces/tomahawk/trunk/sandbox/core/src/main/resources/org/apache/myfaces/custom/effect/resource/fader.js
Mon Aug 21 14:57:39 2006
@@ -0,0 +1,32 @@
+/**
+ * Copyright 2006 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+org_apache_myfaces_effects_fader = function (theid, thetime) {
+	fadeid = theid;
+	time = thetime;
+};
+org_apache_myfaces_effects_fader.prototype.hide = function () {
+	dojo.style.setOpacity(dojo.byId(fadeid), 0);
+};
+org_apache_myfaces_effects_fader.prototype.fadeIn = function () {
+	dojo.lfx.html.fadeIn(dojo.byId(fadeid), time).play();
+};
+org_apache_myfaces_effects_fader.prototype.show = function () {
+	dojo.style.setOpacity(dojo.byId(fadeid), 100);
+};
+org_apache_myfaces_effects_fader.prototype.fadeOut = function () {
+	dojo.lfx.html.fadeOut(dojo.byId(fadeid), time).play();
+};
+



Mime
View raw message