From 1086ed30eca324662be8b61871c4b0b1210427e0 Mon Sep 17 00:00:00 2001 From: lifei6671 Date: Fri, 17 Aug 2018 18:42:20 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/js/markdown.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/static/js/markdown.js b/static/js/markdown.js index 9ad1a8d0..e90d43c0 100644 --- a/static/js/markdown.js +++ b/static/js/markdown.js @@ -212,6 +212,13 @@ $(function () { break; } } + $.each(window.documentCategory,function (i, item) { + var $item = window.documentCategory[i]; + + if (item.id === doc_id) { + window.documentCategory[i].version = res.data.version; + } + }); if (typeof callback === "function") { callback(); }