[Rt-commit] r12919 - in rt/branches/3.8-TESTING: share/html/Elements
elacour at bestpractical.com
elacour at bestpractical.com
Thu Jun 5 11:17:51 EDT 2008
Author: elacour
Date: Thu Jun 5 11:17:51 2008
New Revision: 12919
Modified:
rt/branches/3.8-TESTING/ (props changed)
rt/branches/3.8-TESTING/share/html/Elements/CreateTicket
rt/branches/3.8-TESTING/share/html/Elements/SelectQueue
Log:
r9228 at datura: manu | 2008-06-05 17:17:40 +0200
RT-Ticket: 9407
RT-Status: resolved
RT-Update: correspond
Add a js event to submit create ticket form on queue dropdown change.
Modified: rt/branches/3.8-TESTING/share/html/Elements/CreateTicket
==============================================================================
--- rt/branches/3.8-TESTING/share/html/Elements/CreateTicket (original)
+++ rt/branches/3.8-TESTING/share/html/Elements/CreateTicket Thu Jun 5 11:17:51 2008
@@ -46,5 +46,5 @@
%#
%# END BPS TAGGED BLOCK }}}
<form action="<% RT->Config->Get('WebPath') %>/Ticket/Create.html" name="CreateTicketInQueue" id="CreateTicketInQueue">
-<&|/l, $m->scomp('/Elements/SelectNewTicketQueue')&><input type="submit" class="button" value="New ticket in" /> [_1]</&>
+<&|/l, $m->scomp('/Elements/SelectNewTicketQueue', OnChange => 'document.CreateTicketInQueue.submit()')&><input type="submit" class="button" value="New ticket in" /> [_1]</&>
</form>
Modified: rt/branches/3.8-TESTING/share/html/Elements/SelectQueue
==============================================================================
--- rt/branches/3.8-TESTING/share/html/Elements/SelectQueue (original)
+++ rt/branches/3.8-TESTING/share/html/Elements/SelectQueue Thu Jun 5 11:17:51 2008
@@ -51,7 +51,7 @@
<input name="<%$Name%>" size="25" value="<%$d->Name%>" />
% }
% else {
-<select name="<%$Name%>">
+<select name="<%$Name%>" <% ($OnChange) ? 'onchange="'.$OnChange.'"' : '' |n %>>
% if ($ShowNullOption) {
<option value="">-</option>
% }
@@ -75,6 +75,7 @@
$NamedValues => 0
$Default => 0
$Lite => 0
+$OnChange => undef
</%args>
<%init>
my $cache_key = "SelectQueue---"
More information about the Rt-commit
mailing list