[Rt-commit] r8673 - in rt/branches/3.7-EXPERIMENTAL-TUNIS: .
sartak at bestpractical.com
sartak at bestpractical.com
Tue Aug 21 13:39:41 EDT 2007
Author: sartak
Date: Tue Aug 21 13:39:40 2007
New Revision: 8673
Modified:
rt/branches/3.7-EXPERIMENTAL-TUNIS/ (props changed)
rt/branches/3.7-EXPERIMENTAL-TUNIS/html/Elements/Submit
Log:
r37862 at gorgoroth: sartak | 2007-08-21 13:39:07 -0400
Add an OnClick argument to html/Elements/Submit
Modified: rt/branches/3.7-EXPERIMENTAL-TUNIS/html/Elements/Submit
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL-TUNIS/html/Elements/Submit (original)
+++ rt/branches/3.7-EXPERIMENTAL-TUNIS/html/Elements/Submit Tue Aug 21 13:39:40 2007
@@ -60,10 +60,10 @@
<div class="buttons">
% if ($AlternateLabel) {
<span class="caption"><%$AlternateCaption%></span>
- <input type="submit" <% $Name && qq[ name="$Name"] | n %> value="<%$AlternateLabel%>" class="button" />
+ <input type="submit" <% $OnClick ? qq[ onclick="$OnClick"] : '' | n %> <% $Name ? qq[ name="$Name"] : '' | n %> value="<%$AlternateLabel%>" class="button" />
% } else {
<span class="caption"><%$Caption%></span>
- <input type="submit" <% $Name && qq[ name="$Name"] | n %> value="<%$Label%>" class="button" />
+ <input type="submit" <% $OnClick ? qq[ onclick="$OnClick"] : '' | n %> <% $Name ? qq[ name="$Name"] : '' | n %> value="<%$Label%>" class="button" />
% }
</div>
<div class="submit-clear"></div>
@@ -81,6 +81,7 @@
$ClearAll => undef
$ClearAllLabel => loc('Clear All')
$CheckboxName => ''
+$OnClick => undef
$Reset => undef
$ResetLabel => loc('Reset')
</%ARGS>
More information about the Rt-commit
mailing list