Forum

Shift + E shortcut
 
Notifications
Clear all

Shift + E shortcut

0 Posts
1 Users
0 Reactions
18 Views
Posts: 9
Topic starter
(@itcubed)
Member
Joined: 6 years ago

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


Share: