Fix sorting behaviour in skin editor.

This commit is contained in:
2022-10-12 00:21:18 +08:00
parent 4704ad2769
commit 7704fb6682
2 changed files with 3 additions and 2 deletions

View File

@@ -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;

View File

@@ -7,7 +7,7 @@
<script type="text/javascript" src="array_util.js"></script>
<script type="text/javascript" src="app.js"></script>
<script type="text/javascript" src="messages/en_US.js"></script>
<!--<script type="text/javascript" src="messages/zh_CN.js" charset="UTF-8"></script>-->
<script type="text/javascript" src="messages/zh_CN.js" charset="UTF-8"></script>
</head>
<body>
<div id="app">