[Resolved] Menu "Jumping"

    • September 3, 2019 at 8:59 am #5069
      S
      McCoyCorp
      Participant

      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

       

    • September 3, 2019 at 9:14 am #5070
      stevland
      Keymaster

      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.

    • September 3, 2019 at 11:51 am #5071
      S
      McCoyCorp
      Participant

      Perfect! Thank you!

    • September 23, 2019 at 9:22 am #5131
      J
      TranStarExec
      Participant

      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();
                  });
              }
          });
      });

    • September 23, 2019 at 11:28 am #5132
      stevland
      Keymaster

      @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?

    • September 24, 2019 at 8:31 am #5133
      stevland
      Keymaster

      @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.

You must be logged in to reply to this topic.

Topic Tags