Commit df469739 by Kálmán Viktor

dashboard: display sorting message when sorting table

parent 4a4014ed
......@@ -495,3 +495,7 @@ footer a, footer a:hover, footer a:visited {
.vm-list-table th i {
margin-top: 3px;
}
.table-sorting {
display: none;
}
......@@ -161,12 +161,13 @@ $(function() {
var table = $(".vm-list-table").stupidtable();
table.on("beforetablesort", function(event, data) {
return false;
$(".table-sorting").show();
});
table.on("aftertablesort", function(event, data) {
// this didn't work ;;
// var th = $("this").find("th");
$(".table-sorting").hide();
$(".vm-list-table thead th i").remove();
......
......@@ -9,6 +9,10 @@
<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-heading">
<div class="pull-right table-sorting">
{% trans "Sorting ... " %}
<!--<i class="icon-refresh icon-spin icon-2x"></i>-->
</div>
<h3 class="no-margin"><i class="icon-desktop"></i> {% trans "Virtual machines" %}</h3>
</div>
<div class="pull-right" style="max-width: 250px; margin-top: 15px; margin-right: 15px;">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment