Commit 74839eff authored by Michal Čihař's avatar Michal Čihař

Indicate when we are loading content

parent 21249b9e
......@@ -21,3 +21,4 @@ def fake():
_("Translate using MyMemory")
_("Sort this column")
_("AJAX request to load this content has failed!")
_("Loading...")
......@@ -175,6 +175,17 @@ $(function() {
},
cookie: {
expires: 31
},
cache: true,
load: function (e, ui) {
$(ui.panel).find(".tab-loading").remove();
},
show: function (e, ui) {
var $panel = $(ui.panel);
if ($panel.is(":empty")) {
$panel.append("<div class='tab-loading'>" + gettext("Loading...") + "</div>");
}
}
});
$('tr.clickable').click(function() {
......
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 to comment