Skip to content

Commit

Permalink
[#33150] Use data-direction attribute to update direction (Fix #2797)
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Asika authored and infograf768 committed May 16, 2014
1 parent 0e62381 commit ce50e65
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions media/jui/js/jquery.searchtools.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,9 @@
this.orderCols.click(function() {

// Order to set
var newOrderCol = $(this).attr('data-order');
var newDirection = 'ASC';
var newOrdering = newOrderCol + ' ' + newDirection;
var newOrderCol = $(this).attr('data-order');
var newDirection = $(this).attr('data-direction');
var newOrdering = newOrderCol + ' ' + newDirection;

// The data-order attrib is required
if (newOrderCol.length)
Expand Down
2 changes: 1 addition & 1 deletion media/jui/js/jquery.searchtools.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ce50e65

Please sign in to comment.