forked from laysense/laysite
Release LaySite 1.4.0 canvas editing and layers
This commit is contained in:
@@ -9,12 +9,14 @@ jQuery(function ($) {
|
||||
$updateStatus.text('正在查询上游仓库…');
|
||||
$.ajax({url: '/admin/about/update', dataType: 'json', timeout: 7500})
|
||||
.done(({current, latest, comparison}) => {
|
||||
if (comparison > 0) {
|
||||
$updateStatus.text('发现新版本 ' + latest + ',当前版本为 ' + current + '。');
|
||||
if (latest === null) {
|
||||
$updateStatus.text('上游仓库暂无已发布版本。');
|
||||
} else if (comparison > 0) {
|
||||
$updateStatus.text('发现已发布的新版本 ' + latest + ',当前版本为 ' + current + '。');
|
||||
} else if (comparison < 0) {
|
||||
$updateStatus.text('当前版本 ' + current + ' 高于上游版本 ' + latest + '。');
|
||||
$updateStatus.text('当前版本 ' + current + ' 高于上游最新已发布版本 ' + latest + '。');
|
||||
} else {
|
||||
$updateStatus.text('当前版本 ' + current + ' 已与上游仓库一致。');
|
||||
$updateStatus.text('当前版本 ' + current + ' 已是上游最新发布版本。');
|
||||
}
|
||||
})
|
||||
.fail(({status, responseJSON}) => {
|
||||
|
||||
Reference in New Issue
Block a user