[Rt-commit] rt branch, create-action, updated. 8c589ddb4493b6be68fb47a538cc81d4e2268a9a
sartak at bestpractical.com
sartak at bestpractical.com
Tue Sep 1 04:29:16 EDT 2009
The branch, create-action has been updated
via 8c589ddb4493b6be68fb47a538cc81d4e2268a9a (commit)
via 659a30983e58491239824f5386f13f76f14fc45f (commit)
from c0d342e410d5e0f2ddfc1786552ee063ad88d49c (commit)
Summary of changes:
share/html/Ticket/Create.html | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
- Log -----------------------------------------------------------------
commit 659a30983e58491239824f5386f13f76f14fc45f
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Tue Sep 1 04:27:27 2009 -0400
Fix the details/basics create-page flipping
diff --git a/share/html/Ticket/Create.html b/share/html/Ticket/Create.html
index e5e52ca..c4a6c4c 100755
--- a/share/html/Ticket/Create.html
+++ b/share/html/Ticket/Create.html
@@ -409,10 +409,10 @@ if ((!exists $ARGS{'add_more_attach'}) and (defined($ARGS{'id'}) and $ARGS{'id'}
my $actions = {
A => {
- html => q[<a href="#basics" onclick="return switchVisibility('Ticket-Create-basics','Ticket-Create-details');">] . _('Show basics') . q[</a>],
+ html => q[<a href="#basics" onclick="jQuery('#Ticket-Create-details').hide(); jQuery('#Ticket-Create-basics').show(); return false;">] . _('Show basics') . q[</a>],
},
B => {
- html => q[<a href="#details" onclick="return switchVisibility('Ticket-Create-details','Ticket-Create-basics');">] . _('Show details') . q[</a>],
+ html => q[<a href="#details" onclick="jQuery('#Ticket-Create-basics').hide(); jQuery('#Ticket-Create-details').show(); return false;">] . _('Show details') . q[</a>],
},
};
</%INIT>
commit 8c589ddb4493b6be68fb47a538cc81d4e2268a9a
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Tue Sep 1 04:28:53 2009 -0400
Use jQuery to hide the details pane
I think doOnLoad might be broken :/
diff --git a/share/html/Ticket/Create.html b/share/html/Ticket/Create.html
index c4a6c4c..df2d479 100755
--- a/share/html/Ticket/Create.html
+++ b/share/html/Ticket/Create.html
@@ -47,7 +47,8 @@
%# END BPS TAGGED BLOCK }}}
<&| /_elements/wrapper,
title => _("Create a new ticket"),
- onload => "function () { hide(document.getElementById('Ticket-Create-details')) }" &>
+ onload => "function () { jQuery('#Ticket-Create-details').hide() }",
+&>
<& /Elements/Tabs,
current_toptab => "Ticket/Create.html",
title => _("Create a new ticket"),
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list