This queue is for tickets about the Jifty CPAN distribution.

Report information
The Basics
Id:
57979
Status:
new
Priority:
Low/Low
Queue:

People
Owner:
Nobody in particular
Requestors:
jesse [...] bestpractical.com
Cc:
AdminCc:

BugTracker
Severity:
(no value)
Broken in:
(no value)
Fixed in:
(no value)



Subject: Jifty keybindings lose on action buttons which don't submit actions
Date: Sun, 30 May 2010 13:53:59 -0400
To: bug-jifty@rt.cpan.org
From: Jesse Vincent <jesse@bestpractical.com>
Arguably a bad use of an action's button method, but a sort of "obvious" patern for building up a tool suite around a record. Using the code below, "e" and "t" both click on "event" because the onclick stuff keys on the name of the button, which isn't unique, rather than the id of the button, whcih is. li { $a->button( key_binding => 'd', label => 'Delete', onclick => [ { submit => { action => $a, arguments => { disposition => 'delete' } } }, { refresh_self => 1 } ]); }; li { $a->button( key_binding => 'a', label => 'Archive', onclick => [ { submit => { action => $a, arguments => { disposition => 'archive' } } }, { refresh_self => 1 } ]); }; li { $a->button( name => 'event', key_binding => 'e', label => 'Event', onclick => [ { popout => '/inbox/calendar' } ] ) }; li { $a->button( name => 'task', key_binding => 't', label => 'Task', onclick => [ { popout => '/inbox/task' } ] ) };


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.