Dear visitors, IOP Wiki is currently the target of a denial of service campaign. We are investigating countermeasures. In the meantime, the Wiki may experience periods of unplanned downtime.

Widget:indexSorterGrouper: Difference between revisions

Welcome to IOP Wiki. This website is maintained by the Girls' Frontline community and is free to edit by anyone.
Jump to navigation Jump to search
Added reverse sorting and some name bugfix
m Fixed a sort order bug
Line 234: Line 234:


function tdollSorterActiveButton(butt) {
function tdollSorterActiveButton(butt) {
   $('[data-tdollsortbutton="true"]').removeClass("enabled");
  var isAscending = $(butt).is('.ascending')
   $('[data-tdollsortbutton="true"]').removeClass("enabled").removeClass("ascending");
   $(butt).addClass("enabled");
   $(butt).addClass("enabled");
    
    
   if ($(butt).is('.ascending')) {
   if (isAscending) {
    $(butt).removeClass('ascending');
     return -1;
     return 1;
   } else {
   } else {
     $(butt).addClass('ascending');
     $(butt).addClass('ascending');
     return -1;
     return 1;
   }
   }
}
}

Revision as of 18:25, 1 May 2018


 

Released on this server:

Some heading