[Rt-commit] r4019 - in rtir/branches/1.9-EXPERIMENTAL: .
html/Callbacks/RTIR/Elements/RT__Ticket/ColumnMap
ruz at bestpractical.com
ruz at bestpractical.com
Thu Nov 3 16:41:09 EST 2005
Author: ruz
Date: Thu Nov 3 16:41:08 2005
New Revision: 4019
Modified:
rtir/branches/1.9-EXPERIMENTAL/ (props changed)
rtir/branches/1.9-EXPERIMENTAL/html/Callbacks/RTIR/Elements/RT__Ticket/ColumnMap/ColumnMap
Log:
r253 at cubic-pc: cubic | 2005-11-03 16:49:25 +0300
r245 at cubic-pc: cubic | 2005-11-01 15:29:32 +0300
_RTIR_Check in format:
* input name renamed into 'SelectedTickets'
* ticket id is not part of the name any more, but value
this allow you to handle argument as array instead of scanning
ARGS hash with regular expressions.
Modified: rtir/branches/1.9-EXPERIMENTAL/html/Callbacks/RTIR/Elements/RT__Ticket/ColumnMap/ColumnMap
==============================================================================
--- rtir/branches/1.9-EXPERIMENTAL/html/Callbacks/RTIR/Elements/RT__Ticket/ColumnMap/ColumnMap (original)
+++ rtir/branches/1.9-EXPERIMENTAL/html/Callbacks/RTIR/Elements/RT__Ticket/ColumnMap/ColumnMap Thu Nov 3 16:41:08 2005
@@ -11,39 +11,38 @@
value => sub {
my $selected = '';
if ( $check eq 'All' ) {
- $selected = 'CHECKED';
+ $selected = 'checked';
}
- elsif ( $check eq 'All' ) {
+ elsif ( $check eq 'None' ) {
$selected = '';
}
elsif ( $check == $_[0]->id ) {
- $selected = 'CHECKED';
+ $selected = 'checked';
}
elsif ( ref($check) eq 'ARRAY' ) {
foreach my $check (@$check) {
if ( $_[0]->id == $check ) {
- $selected = 'CHECKED';
+ $selected = 'checked';
}
}
}
- return ( \'<input type="checkbox" name="UpdateTicket',
- $_[0]->id, \'" ', $selected, \'>' );
+ return ( \'<input type="checkbox" name="SelectedTickets" value="',
+ $_[0]->id, \'" ', $selected, \' />' );
},
};
$COLUMN_MAP->{'_RTIR_Radio'} = {
- title => ( \' ' ),
+ title => ' ',
value => sub {
my $selected = '';
if ( $_[0]->id == $check ) {
- $selected = 'CHECKED';
+ $selected = 'checked';
}
return ( \'<input type="radio" name="SelectedTicket" value="',
- $_[0]->id, \'" ', $selected, \'>' );
+ $_[0]->id, \'" ', $selected, \' />' );
},
};
</%INIT>
-
<%ARGS>
$COLUMN_MAP => undef
</%ARGS>
More information about the Rt-commit
mailing list