mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-28 03:16:16 -04:00
remove cruft
This commit is contained in:
parent
58f9d8805a
commit
1cff58fec8
1 changed files with 2 additions and 6 deletions
|
@ -5167,8 +5167,6 @@ function Ace2Inner(){
|
|||
var level = 0;
|
||||
var listType = /([a-z]+)([0-9]+)/.exec(getLineListType(n));
|
||||
|
||||
var togglineOn = false;
|
||||
|
||||
// Used to outdent if ol is removed
|
||||
if(allLinesAreList){
|
||||
togglingOn = false;
|
||||
|
@ -5187,9 +5185,7 @@ function Ace2Inner(){
|
|||
|
||||
if(togglingOn){
|
||||
mods.push([n, allLinesAreList ? 'indent' + level : (t ? type + level : type + '1')]);
|
||||
}
|
||||
|
||||
if(!togglingOn){
|
||||
}else{
|
||||
// scrap the entire indentation and list type
|
||||
if(level === 1){ // if outdending but are the first item in the list then outdent
|
||||
setLineListType(n, ''); // outdent
|
||||
|
@ -5197,7 +5193,7 @@ function Ace2Inner(){
|
|||
// else change to indented not bullet
|
||||
if(level > 1){
|
||||
setLineListType(n, ''); // remove bullet
|
||||
let newLevel = level+1;
|
||||
let newLevel = level + 1;
|
||||
setLineListType(n, "indent"+level); // outdent
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue