Notifications
Clear all
6 Forums 829 Topics 3,280 Posts 9 Online 3,047 Members

Resolved Menu "Jumping"

6 Posts
3 Users
0 Reactions
177 Views
Posts: 12
Topic starter
(@mccoycorp)
Member
Joined: 7 years ago

Any way to prevent the menu from "jumping" when hovering over it? It doesn't show the ticket counts until you hover. Then, it makes the menu adjust and makes me click on the wrong things.  I'd like to have the counts display by default, or turn off ticket counts so the menu won't adjust. Either is better than moving the menu when I'm trying to click on it.

Screen capture: https://mccoycloud.com/index.php/s/bntn5nCxYLeLCMZ

osTicket v1.12.2 // osTicket-1.12.2-Awesome-101<br />
PHP 7.2.21 // MySQL 10.2.26 // Apache web server

 


Topic Tags
5 Replies
Posts: 1185
Admin
(@stevland)
Member
Joined: 10 years ago

Thanks for the screen capture, that helped me understand your issue.

The fix is very simple.

Admin Panel > Tickets > Top-Level Ticket Counts <uncheck>

I'm working on new installation instructions. Most people won't have this checked, but for those that do I'll add the instruction to Post Installation Suggested Steps.


Reply
Posts: 12
Topic starter
(@mccoycorp)
Member
Joined: 7 years ago

Perfect! Thank you!


Reply
Posts: 1
(@transtarexec)
Member
Joined: 7 years ago

adding the following to the bottom of  scp/js/scp.js makes counts load before hover (remove ending BR's, can't seem to get them to not show)

$(document).ready(function() {
    $.ajax({
        url: 'ajax.php/queue/counts',
        dataType: 'json',
        success: function(json) {
            $('li span.queue-count').each(function(i, e) {
                var $e = $(e);
                $e.text(json['q' + $e.data('queueId')]);
            $(e).parents().find('#queue-count-bucket').show();
            });
        }
    });
});


Reply
Posts: 1185
Admin
(@stevland)
Member
Joined: 10 years ago

@TranStarExec,

Thanks for sharing your fix. I'll incorporate this into the next release.

Unfortunately, I haven't been able to reproduce this solution.

After adding the above code to /scp/js/scp.js and, enabling Ticket Counts and clearing my browser cache, the actual Ticket Counts load at the same speed as they do without the fix.

Is it possible you've forgotten to share something else that was required to make this fix work?


Reply
Posts: 1185
Admin
(@stevland)
Member
Joined: 10 years ago

@transtarexec,

Never mind, I was confused about what this is supposed to do. There is still a slight delay before the Ticket Counts load⁠ — I mistakenly thought this was meant to make them appear upon the initial page load⁠ — but I now understand that this is a big improvement over waiting for a mouse hover event before loading the Ticket Counts.

This will be integrated into osTicket Awesome going forward. Again, thanks for sharing.


Reply
Share: