You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by jk...@apache.org on 2006/08/06 18:36:59 UTC
svn commit: r429150 - in /tapestry/tapestry4/trunk:
tapestry-contrib/src/java/org/apache/tapestry/contrib/ajax/Timeout.script
tapestry-examples/Workbench/src/context/WEB-INF/Palette.page
Author: jkuhnert
Date: Sun Aug 6 09:36:58 2006
New Revision: 429150
URL: http://svn.apache.org/viewvc?rev=429150&view=rev
Log:
Fixed small annoyances with Timeout javascript errors ( can't use if (function name) on a global function to check for its existance).
Updates some portions of Palette page to not get javascript runtime exceptions, palette javascript probably needs to be re-written
now.
Modified:
tapestry/tapestry4/trunk/tapestry-contrib/src/java/org/apache/tapestry/contrib/ajax/Timeout.script
tapestry/tapestry4/trunk/tapestry-examples/Workbench/src/context/WEB-INF/Palette.page
Modified: tapestry/tapestry4/trunk/tapestry-contrib/src/java/org/apache/tapestry/contrib/ajax/Timeout.script
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-contrib/src/java/org/apache/tapestry/contrib/ajax/Timeout.script?rev=429150&r1=429149&r2=429150&view=diff
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-contrib/src/java/org/apache/tapestry/contrib/ajax/Timeout.script (original)
+++ tapestry/tapestry4/trunk/tapestry-contrib/src/java/org/apache/tapestry/contrib/ajax/Timeout.script Sun Aug 6 09:36:58 2006
@@ -132,22 +132,22 @@
}
function TimeoutHandleOnClick() {
- if (TimeoutPreviousOnClick) TimeoutPreviousOnClick();
+ if (!dj_undef("TimeoutPreviousOnClick")) TimeoutPreviousOnClick();
TimeoutRegisterUserAction();
}
function TimeoutHandleOnMouseMove() {
- if (TimeoutPreviousOnMouseMove) TimeoutPreviousOnMouseMove();
+ if (!dj_undef("TimeoutPreviousOnMouseMove")) TimeoutPreviousOnMouseMove();
TimeoutRegisterUserAction();
}
function TimeoutHandleOnKeyPress() {
- if (TimeoutPreviousOnKeyPress) TimeoutPreviousOnKeyPress();
+ if (!dj_undef("TimeoutPreviousOnKeyPress")) TimeoutPreviousOnKeyPress();
TimeoutRegisterUserAction();
}
function TimeoutHandleOnScroll() {
- if (TimeoutPreviousOnScroll) TimeoutPreviousOnScroll();
+ if (!dj_undef("TimeoutPreviousOnScroll")) TimeoutPreviousOnScroll();
TimeoutRegisterUserAction();
}
Modified: tapestry/tapestry4/trunk/tapestry-examples/Workbench/src/context/WEB-INF/Palette.page
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-examples/Workbench/src/context/WEB-INF/Palette.page?rev=429150&r1=429149&r2=429150&view=diff
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-examples/Workbench/src/context/WEB-INF/Palette.page (original)
+++ tapestry/tapestry4/trunk/tapestry-examples/Workbench/src/context/WEB-INF/Palette.page Sun Aug 6 09:36:58 2006
@@ -34,14 +34,14 @@
<component id="inputEnabled" type="Checkbox">
<binding name="value" value="clientValidationEnabled"/>
- <binding name="onchange" value="literal:javascript:this.form.events.submit();"/>
+ <binding name="onchange" value="literal:tapestry.form.submit(this.form);"/>
</component>
<component id="inputColorSort" type="PropertySelection">
<binding name="value" value="sort"/>
<binding name="model" value="literal:None=NONE,Label=LABEL,Value=VALUE,Manual=USER"/>
<binding name="onchange">
- literal:javascript:this.form.events.refresh();
+ literal:tapestry.form.refresh(this.form);
</binding>
</component>