Make statements in expression not sortable.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
@@ -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", "");
|
||||
|
Reference in New Issue
Block a user