Add a spinner for the history and update history buttons

This commit is contained in:
yflory
2017-06-30 12:36:21 +02:00
parent 4ab82710ab
commit 568ce70afd
4 changed files with 28 additions and 14 deletions

View File

@@ -1130,15 +1130,14 @@ define([
button = $('<span>');
break;
}
var $text = $('<span>', {'class': 'drawer'}).text(Messages.historyText);
button = $('<button>', {
title: Messages.historyButton,
'class': "fa fa-history history",
}).append($text);
}).append($('<span>', {'class': 'drawer'}).text(Messages.historyText));
if (data.histConfig) {
button
.click(prepareFeedback(type))
.click(function () {
.on('click', function () {
common.getHistory(data.histConfig);
});
}