|
|
@ -791,16 +791,23 @@ define([
|
|
|
|
button = $('<span>');
|
|
|
|
button = $('<span>');
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
var active = $(".cp-toolbar-history:visible").length !== 0;
|
|
|
|
button = $('<button>', {
|
|
|
|
button = $('<button>', {
|
|
|
|
title: Messages.historyButton,
|
|
|
|
title: active ? Messages.history_closeTitle : Messages.historyButton,
|
|
|
|
'class': "fa fa-history cp-toolbar-icon-history",
|
|
|
|
'class': "fa fa-history cp-toolbar-icon-history",
|
|
|
|
}).append($('<span>', {'class': 'cp-toolbar-drawer-element'}).text(Messages.historyText));
|
|
|
|
}).append($('<span>', {'class': 'cp-toolbar-drawer-element'}).text(Messages.historyText));
|
|
|
|
|
|
|
|
button.toggleClass("active", active);
|
|
|
|
if (data.histConfig) {
|
|
|
|
if (data.histConfig) {
|
|
|
|
button
|
|
|
|
if (active) {
|
|
|
|
.click(common.prepareFeedback(type))
|
|
|
|
button.click(function () { $(".cp-toolbar-history-close").trigger("click"); });
|
|
|
|
.on('click', function () {
|
|
|
|
}
|
|
|
|
common.getHistory(data.histConfig);
|
|
|
|
else {
|
|
|
|
});
|
|
|
|
button
|
|
|
|
|
|
|
|
.click(common.prepareFeedback(type))
|
|
|
|
|
|
|
|
.on('click', function () {
|
|
|
|
|
|
|
|
common.getHistory(data.histConfig);
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 'more':
|
|
|
|
case 'more':
|
|
|
|