From a2a041a98a820c715fff3a7cef10763ddd031246 Mon Sep 17 00:00:00 2001 From: ed Date: Mon, 19 Apr 2021 16:54:38 +0200 Subject: [PATCH] optimize --- copyparty/web/up2k.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/copyparty/web/up2k.js b/copyparty/web/up2k.js index 23e920ed..f0bcf824 100644 --- a/copyparty/web/up2k.js +++ b/copyparty/web/up2k.js @@ -174,6 +174,9 @@ function U2pvis(act, btns) { this.seth = function (nfile, field, html) { var fo = this.tab[nfile]; field = ['hn', 'ht', 'hp'][field]; + if (fo[field] === html) + return; + fo[field] = html; if (!this.is_act(fo.in)) return;