mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-28 03:16:16 -04:00
parent
76d2900790
commit
3f44441a87
1 changed files with 1 additions and 7 deletions
|
@ -5168,13 +5168,11 @@ function Ace2Inner(){
|
||||||
var listType = /([a-z]+)([0-9]+)/.exec(getLineListType(n));
|
var listType = /([a-z]+)([0-9]+)/.exec(getLineListType(n));
|
||||||
|
|
||||||
// Used to outdent if ol is removed
|
// Used to outdent if ol is removed
|
||||||
/*
|
|
||||||
if(allLinesAreList){
|
if(allLinesAreList){
|
||||||
var togglingOn = false;
|
var togglingOn = false;
|
||||||
}else{
|
}else{
|
||||||
var togglingOn = true;
|
var togglingOn = true;
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
if (listType)
|
if (listType)
|
||||||
{
|
{
|
||||||
|
@ -5185,10 +5183,6 @@ function Ace2Inner(){
|
||||||
|
|
||||||
if(t === listType) togglingOn = false;
|
if(t === listType) togglingOn = false;
|
||||||
|
|
||||||
if (allLinesAreList && level != 1) { level = level - 1; }
|
|
||||||
else if (t && !allLinesAreList) { level = level + 1; }
|
|
||||||
|
|
||||||
/*
|
|
||||||
if(togglingOn){
|
if(togglingOn){
|
||||||
mods.push([n, allLinesAreList ? 'indent' + level : (t ? type + level : type + '1')]);
|
mods.push([n, allLinesAreList ? 'indent' + level : (t ? type + level : type + '1')]);
|
||||||
}else{
|
}else{
|
||||||
|
@ -5203,7 +5197,7 @@ function Ace2Inner(){
|
||||||
setLineListType(n, "indent"+level); // outdent
|
setLineListType(n, "indent"+level); // outdent
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_.each(mods, function(mod){
|
_.each(mods, function(mod){
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue