mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-30 12:11:32 +08:00
Added arrow indicator for sorting
This commit is contained in:
parent
a290251ae7
commit
b18d269bda
@ -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;
|
||||
}
|
||||
});
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user