Make statements in expression not sortable.

This commit is contained in:
2023-03-15 15:41:02 +08:00
parent 0bc57c368f
commit bf578d7cb9
2 changed files with 5 additions and 2 deletions

View File

@@ -269,7 +269,8 @@ input {
border-left-width: 5px;
}
.mode-sort .t-statement.t-inline {
.mode-sort .t-statement.t-inline,
.mode-sort .t-exp > .t-statement {
border-color: lightgray;
}

View File

@@ -220,7 +220,9 @@ function onToggleButtonClick(id, state) {
else tv.removeClass(cls);
if (cls == "mode-sort") {
var il = tv.find(".t-input");
var sl = tv.find(".t-statement").not(".t-inline");
var sl = tv.find(".t-statement").not(".t-inline").not(function () {
return $(this).parent().is(".t-exp");
});
if (state) {
il.each(function (i) {
$(il[i]).children("input").attr("disabled", "");