Make statements in expression not sortable.
This commit is contained in:
@@ -269,7 +269,8 @@ input {
|
|||||||
border-left-width: 5px;
|
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;
|
border-color: lightgray;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -220,7 +220,9 @@ function onToggleButtonClick(id, state) {
|
|||||||
else tv.removeClass(cls);
|
else tv.removeClass(cls);
|
||||||
if (cls == "mode-sort") {
|
if (cls == "mode-sort") {
|
||||||
var il = tv.find(".t-input");
|
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) {
|
if (state) {
|
||||||
il.each(function (i) {
|
il.each(function (i) {
|
||||||
$(il[i]).children("input").attr("disabled", "");
|
$(il[i]).children("input").attr("disabled", "");
|
||||||
|
|||||||
Reference in New Issue
Block a user