Updated class switch command

This commit is contained in:
Safia Abdalla 2016-01-14 21:29:57 -06:00
parent 0fbe6abedd
commit b1d96cad52

View File

@ -159,13 +159,11 @@ define([
if (that.sort_state.sort_on == 0) {
that.sort_list(sort_on, 1);
$(sort_on + " i").removeClass("fa-arrow-up")
.addClass("fa-arrow-down");
$("#" + sort_on + " i").switchClass("fa-arrow-up", "fa-arrow-down");
that.sort_state.sort_on = 1;
} else {
that.sort_list(sort_on, 2);
$(sort_on + " i").removeClass("fa-arrow-down")
.addClass("fa-arrow-up");
$("#" + sort_on + " i").switchClass("fa-arrow-down", "fa-arrow-up");
that.sort_state.sort_on = 0;
}
});