Fix version number in oo history

This commit is contained in:
yflory 2020-09-21 15:47:49 +02:00
parent 3c5d3ce43e
commit c4bba88afd

View file

@ -125,10 +125,13 @@ define([
var $loadMore, $version, get;
var showVersion = function () {
var showVersion = function (initial) {
var major = sortedCp.length - cpIndex;
var v = major + '.' + msgIndex;
$version.text("Version " + v); // XXX
if (initial) {
v = "Latest"; // XXX
}
$version.text("Version: " + v); // XXX
var $pos = $hist.find('.cp-toolbar-history-pos');
var cps = sortedCp.length;
@ -351,7 +354,7 @@ define([
if (config.onlyoffice.lastHash === hashes[sortedCp[sortedCp.length - 1]].hash) {
cpIndex = 0;
}
showVersion();
showVersion(true);
//return void loadMoreOOHistory();
};