|
|
@ -156,16 +156,18 @@ define([
|
|
|
|
$fastPrev.show();
|
|
|
|
$fastPrev.show();
|
|
|
|
$next.show();
|
|
|
|
$next.show();
|
|
|
|
$fastNext.show();
|
|
|
|
$fastNext.show();
|
|
|
|
|
|
|
|
$hist.find('.cp-toolbar-history-next, .cp-toolbar-history-previous')
|
|
|
|
|
|
|
|
.prop('disabled', '');
|
|
|
|
if (cpIndex >= cps && msgIndex === 0) {
|
|
|
|
if (cpIndex >= cps && msgIndex === 0) {
|
|
|
|
$fastPrev.hide();
|
|
|
|
$fastPrev.prop('disabled', 'disabled');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (cpIndex === 0) {
|
|
|
|
if (cpIndex === 0) {
|
|
|
|
$fastNext.hide();
|
|
|
|
$fastNext.prop('disabled', 'disabled');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
var id = getId();
|
|
|
|
var id = getId();
|
|
|
|
var msgs = (ooMessages[id] || []).length;
|
|
|
|
var msgs = (ooMessages[id] || []).length;
|
|
|
|
if (msgIndex >= (msgs-1)) {
|
|
|
|
if (msgIndex >= (msgs-1)) {
|
|
|
|
$next.hide();
|
|
|
|
$next.prop('disabled', 'disabled');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
@ -199,8 +201,8 @@ define([
|
|
|
|
h('i.fa.fa-step-forward')
|
|
|
|
h('i.fa.fa-step-forward')
|
|
|
|
]);
|
|
|
|
]);
|
|
|
|
$fastPrev = $(fastPrev);
|
|
|
|
$fastPrev = $(fastPrev);
|
|
|
|
$fastNext = $(fastNext).hide();
|
|
|
|
$fastNext = $(fastNext).prop('disabled', 'disabled');
|
|
|
|
$next = $(_next).hide();
|
|
|
|
$next = $(_next).prop('disabled', 'disabled');
|
|
|
|
|
|
|
|
|
|
|
|
var pos = h('span.cp-history-timeline-pos.fa.fa-caret-down');
|
|
|
|
var pos = h('span.cp-history-timeline-pos.fa.fa-caret-down');
|
|
|
|
var time = h('div.cp-history-timeline-time');
|
|
|
|
var time = h('div.cp-history-timeline-time');
|
|
|
|