[In Progress] Shift + E shortcut

    • February 27, 2023 at 9:33 am #15347
      itcubed
      Participant

      Hi Stevland

      Have a bug relating to the SHIFT and E shortcut command.

      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 I notice this hasn’t been fixed.

      Oliver.

      Here is my amendment to the code in /osta/js/mousetrap.js

      // 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';

      });

       

      osTicket v1.17.2 // osTicket-1.17.2-Awesome-102
      PHP 8.2.3 // MySQL 10.5.18 // Apache web server

You must be logged in to reply to this topic.