dotjs/unisubs.sifterapp.com.js @ 2b78b064b415
Moar.
author |
Steve Losh <steve@stevelosh.com> |
date |
Wed, 28 Mar 2012 10:18:06 -0400 |
parents |
f8d38666b868 |
children |
cd7424ed2e9d |
$(function() {
$('ul.state li.priority').each(function(idx, el) {
$(el).closest('.issue').find('h2').append(
'<span class="new-priority">' + $(el).text() + '</span>'
);
$(el).remove();
});
$('body').keydown(function(e) {
$tickets = $('tr.issue td.subject a');
cmds = {
'49': function() {
document.location = $tickets.eq(0).attr('href');
},
'50': function() {
document.location = $tickets.eq(1).attr('href');
},
'51': function() {
document.location = $tickets.eq(2).attr('href');
}
};
if (typeof cmds[e.keyCode] === 'function') {
cmds[e.keyCode]();
}
});
});