myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From we...@apache.org
Subject svn commit: r436725 - /myfaces/tomahawk/trunk/sandbox/core/src/main/resources/org/apache/myfaces/custom/effect/resource/fader.js
Date Fri, 25 Aug 2006 09:02:25 GMT
Author: werpu
Date: Fri Aug 25 02:02:24 2006
New Revision: 436725

URL: http://svn.apache.org/viewvc?rev=436725&view=rev
Log:
alterated some of the fading supparts towards dojo apis, my testcases
showed some small visual errors in the way the components behave upon
fade in fade out, this should final fixup on this code now

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

Modified: 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=436725&r1=436724&r2=436725&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/core/src/main/resources/org/apache/myfaces/custom/effect/resource/fader.js
(original)
+++ myfaces/tomahawk/trunk/sandbox/core/src/main/resources/org/apache/myfaces/custom/effect/resource/fader.js
Fri Aug 25 02:02:24 2006
@@ -1,3 +1,4 @@
+
 /**
  * Copyright 2006 The Apache Software Foundation.
  *
@@ -13,20 +14,22 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
+dojo.require("dojo.lfx.html.*");
 
 org_apache_myfaces_effects_fader = function (theid, thetime) {
 	this.fadeid = theid;
 	this.time = thetime;
 };
 org_apache_myfaces_effects_fader.prototype.hide = function () {
+	dojo.style.hide(dojo.byId(this.fadeid));
 	dojo.style.setOpacity(dojo.byId(this.fadeid), 0);
 };
 org_apache_myfaces_effects_fader.prototype.fadeIn = function () {
-	dojo.lfx.html.fadeIn(dojo.byId(this.fadeid), this.time).play();
+	dojo.lfx.html.fadeShow(dojo.byId(this.fadeid), this.time).play();
 };
 org_apache_myfaces_effects_fader.prototype.show = function () {
-	dojo.style.setOpacity(dojo.byId(this.fadeid), 100);
+	dojo.style.show(dojo.byId(this.fadeid));
 };
 org_apache_myfaces_effects_fader.prototype.fadeOut = function () {
-	dojo.lfx.html.fadeOut(dojo.byId(this.fadeid), this.time).play();
-};
+	dojo.lfx.html.fadeHide (dojo.byId(this.fadeid), this.time).play();
+};
\ No newline at end of file



Mime
View raw message