itcubed

Forum Replies Created

  • In reply to: Print thread to PDF – Internal Server Error

    March 15, 2022 at 10:12 am #9700
    itcubed
    Participant

    Can I check if this has been noted please?

    In reply to: Reply arrow missing on conditional formatting

    March 15, 2022 at 10:11 am #9698
    itcubed
    Participant

    Can I check if this has been noted please?

    In reply to: Keyboard Shortcut / Edit Ticket

    February 26, 2021 at 4:16 pm #7477
    itcubed
    Participant

    Hi Stevland

    Many thanks – working brilliantly. I did come across a minor bug with it.

    After adding a reply/note, the URL goes
    from:
    …/scp/tickets.php?id=XXXXX
    to either:
    …/scp/tickets.php?id=XXXXX#reply
    or
    …/scp/tickets.php?id=XXXXX#note

    Shift E then makes this

    …/scp/tickets.php?id=XXXXX#reply&a=edit

    which doesn’t work.

    I’ve put in a fix to remove the #reply and #note, but you may have something more elegant up your sleeve to roll into the next release. 🙂

    (I also removed the & from the last line (highlighted) as it was putting in a double ampersand)

    Oliver.

    // shift + e
    Mousetrap.bind('shift+e', function(e) {
    
    var loc = location.href;
    loc = loc.split("#")[0];
    loc += loc.indexOf("?") === -1 ? "?" : "&";
    location.href = loc + 'a=edit';
    
    });