dotjs/unisubs.sifterapp.com.js @ 16d004f71445

Update ALL the bundles!
author Steve Losh <steve@stevelosh.com>
date Tue, 27 Mar 2012 11:38:35 -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]();
        }
    });
});