Skip Menu |

This queue is for tickets about the Jifty CPAN distribution.

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

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

Bug Information
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' } ] ) };