Added arrow indicator for sorting

This commit is contained in:
Safia Abdalla 2016-01-11 18:25:50 -06:00
parent a290251ae7
commit b18d269bda
2 changed files with 5 additions and 0 deletions

View File

@ -155,11 +155,15 @@ define([
// descending order, then sort it on ascending order
if (!that.datetime_sorted || that.datetime_sorted == 2) {
that.sort_datetime(1);
$("#button-last-modified i").removeClass("fa-arrow-down");
$("#button-last-modified i").addClass("fa-arrow-up");
that.datetime_sorted = 1;
} else {
// Otherwise sort the list in descending order and set
// the value of datetime_sorted appropriately
that.sort_datetime(2);
$("#button-last-modified i").removeClass("fa-arrow-up");
$("#button-last-modified i").addClass("fa-arrow-down");
that.datetime_sorted = 2;
}
});

View File

@ -104,6 +104,7 @@ data-terminals-available="{{terminals_available}}"
<div id="last_modified" class="pull-right">
<span class="btn btn-xs btn-default" id="button-last-modified">
Last Modified
<i class="fa fa-arrow-up"></i>
</span>
</div>
</div>