1

I am our Site Admin for FBOD and would like to be able to change the default sort the correspondence in a case, as viewed by an anonymous user. Currently this is sorted oldest to newest and I would like to offer this to anonymous users as newest to oldest so they don't have to scroll down to the bottom to see the latest case updates in a thread.

Is this possible currently?

Gavin

flag

1 Answer

1

I think this can be done using BugMonkey. For instance have a look at this script.

Update: I edited the script to have the icon inserted in a place visible for all users:

name:          Reverse BugEvents
description:   Temporarily switches BugEvent order
author:        Tyler Hicks-Wright, Michel de Ruiter
version:       1.1.0.0

js:
var be = $('#BugEvents');
if (be.length > 0) {
  var wher = '.statusbar';
  if ($(wher).length == 0) {
    wher = '#statusbarspacer';
  }
  $('<a>').appendTo(wher).addClass('TGHW_BugEventOrder')
    .attr('href', 'javascript:void(0);').attr('title', 'Reverse events')
    .click(function() {
      $('#BugEvents .bugevent, #BugEvents .pseudobugevent')
      .each(function(i, e) { be.prepend($(e).remove()); });
    });
}

css:
.TGHW_BugEventOrder {
  background: url(http://tghwmedia.appspot.com/media/hwnet/img/ui-accordion.png) no-repeat;
  height: 16px;
  width: 16px;
  display: block;
  float: right;
}
link|flag
Sorry for delay in response have been on leave. That is helpful and I implemented it and it works which is great. However it only works for FB users and not for anonymous users. I was hoping to resolve this for them as they will always see ticket updates in oldest to newest order by default and I'd like to have them be able to switch it to newest first if possible. – grk Jul 5 at 11:06
@grk: Like this? :-) – Michel de Ruiter Jul 6 at 8:31

Your Answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.