From e7c458e10ac82d963c3302e17a2d51052846f54e Mon Sep 17 00:00:00 2001 From: Argo-MacBookPro Date: Mon, 17 Sep 2018 01:16:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9BUG=EF=BC=9A=E6=9B=B4?= =?UTF-8?q?=E6=94=B9CacheList.axd=E6=8E=A5=E5=8F=A3=EF=BC=8C=E9=98=B2?= =?UTF-8?q?=E6=AD=A2=E5=87=BA=E7=8E=B0=E7=BC=93=E5=AD=98=E5=89=A9=E4=BD=99?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E4=B8=BA=E8=B4=9F=E6=95=B0=E7=9A=84=E6=83=85?= =?UTF-8?q?=E5=86=B5=EF=BC=8C=E6=9B=B4=E6=94=B9=E4=B8=BA=E6=9C=8D=E5=8A=A1?= =?UTF-8?q?=E5=99=A8=E7=AB=AF=E8=AE=A1=E7=AE=97=E7=BC=93=E5=AD=98=E7=94=9F?= =?UTF-8?q?=E5=AD=98=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bootstrap.Admin/wwwroot/js/settings.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Bootstrap.Admin/wwwroot/js/settings.js b/Bootstrap.Admin/wwwroot/js/settings.js index c679d61b..22ac9a77 100644 --- a/Bootstrap.Admin/wwwroot/js/settings.js +++ b/Bootstrap.Admin/wwwroot/js/settings.js @@ -64,7 +64,7 @@ var content = result.sort(function (x, y) { return x.Key > y.Key ? 1 : -1; }).map(function (ele) { - return $.format(html, ele.Interval, ele.Key, ele.Desc, ele.Value, $.format(item.Url, ele.Key), item.Self, Math.max(0, ele.Interval - Math.round((new Date() - new Date(ele.CreateTime.replace(/-/g, '/'))) / 1000))); + return $.format(html, ele.Interval, ele.Key, ele.Desc, ele.Value, $.format(item.Url, ele.Key), item.Self, ele.ElapsedSeconds); }).join(''); $sortable.append($.format('
{0}
', item.Desc)); $sortable.append(content); @@ -95,7 +95,7 @@ listCacheUrl(options); }).last().trigger('click'); $sortable.on('click', '.btn', function () { - var $this =$(this).tooltip('dispose'); + var $this = $(this).tooltip('dispose'); $.bc({ url: $this.attr('data-url'), cors: $this.attr('data-self') === 'false' }); listCacheUrl(); });