Forum

Menu "Jumping&...
 
Notifications
Clear all

Menu "Jumping"

5 Posts
3 Users
0 Reactions
32 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

 


4 Replies
Posts: 1177
Admin
(@stevland)
Member
Joined: 2 months 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: 1177
Admin
(@stevland)
Member
Joined: 2 months 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
Page 1 / 2
Share: