From 7704fb66820f267875f32622cd0dc5cd09d6b325 Mon Sep 17 00:00:00 2001 From: PopSlime Date: Wed, 12 Oct 2022 00:21:18 +0800 Subject: [PATCH] Fix sorting behaviour in skin editor. --- Http/SkinEditor/app.js | 3 ++- Http/SkinEditor/index.html | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Http/SkinEditor/app.js b/Http/SkinEditor/app.js index a43ae0b..19851fd 100644 --- a/Http/SkinEditor/app.js +++ b/Http/SkinEditor/app.js @@ -406,8 +406,9 @@ function updateLiteral(el) { var key = el.attr("key"); var m = msg("literal." + key); var o = el.children(".t-internal"); + tv.append(o); // Stashes the supplement blocks to prevent the event listeners from being detached addAddButtonLiteral(el.html(m)); - el.append(o); + el.append(o); // Restores the blocks el.children("tbr").replaceWith(function() { var m = $(this).text().split("?"); var def; diff --git a/Http/SkinEditor/index.html b/Http/SkinEditor/index.html index 8cba4bb..5da7a7c 100644 --- a/Http/SkinEditor/index.html +++ b/Http/SkinEditor/index.html @@ -7,7 +7,7 @@ - +