diff --git a/src/static/js/ace2_inner.js b/src/static/js/ace2_inner.js index 57f92d239..e0286bc57 100644 --- a/src/static/js/ace2_inner.js +++ b/src/static/js/ace2_inner.js @@ -5168,13 +5168,11 @@ function Ace2Inner(){ var listType = /([a-z]+)([0-9]+)/.exec(getLineListType(n)); // Used to outdent if ol is removed -/* if(allLinesAreList){ var togglingOn = false; }else{ var togglingOn = true; } -*/ if (listType) { @@ -5185,10 +5183,6 @@ function Ace2Inner(){ if(t === listType) togglingOn = false; - if (allLinesAreList && level != 1) { level = level - 1; } - else if (t && !allLinesAreList) { level = level + 1; } - -/* if(togglingOn){ mods.push([n, allLinesAreList ? 'indent' + level : (t ? type + level : type + '1')]); }else{ @@ -5203,7 +5197,7 @@ function Ace2Inner(){ setLineListType(n, "indent"+level); // outdent } } -*/ + } _.each(mods, function(mod){