mirror of
https://github.com/ONLYOFFICE/onlyoffice.github.io.git
synced 2026-04-07 14:04:30 +08:00
Fix crash & update translations
This commit is contained in:
@ -263,7 +263,11 @@ ace.config.loadModule('ace/ext/html_beautify', function (beautify) {
|
||||
if (currentElement === activeElement)
|
||||
return;
|
||||
|
||||
macrosList.insertBefore(activeElement, nextElement);
|
||||
try {
|
||||
macrosList.insertBefore(activeElement, nextElement);
|
||||
} catch (err) {
|
||||
return;
|
||||
}
|
||||
let indNext = Content.macrosArray.findIndex(function(el) {
|
||||
return (nextElement && el.name == nextElement.innerText)
|
||||
})
|
||||
@ -287,7 +291,11 @@ ace.config.loadModule('ace/ext/html_beautify', function (beautify) {
|
||||
if (currentElement === activeElement)
|
||||
return;
|
||||
|
||||
functionList.insertBefore(activeElement, nextElement);
|
||||
try {
|
||||
functionList.insertBefore(activeElement, nextElement);
|
||||
} catch (err) {
|
||||
return;
|
||||
}
|
||||
let indNext = CustomFunctions.macrosArray.findIndex(function(el) {
|
||||
return (nextElement && el.name == nextElement.innerText)
|
||||
})
|
||||
@ -437,6 +445,8 @@ ace.config.loadModule('ace/ext/html_beautify', function (beautify) {
|
||||
window.onItemClick = onItemClick;
|
||||
|
||||
function onClickCC(event) {
|
||||
if (!event)
|
||||
return;
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
const srcElement = event.srcElement;
|
||||
|
||||
@ -12,5 +12,7 @@
|
||||
"Unmake autostart": "Zrušit automatické spuštění",
|
||||
"Custom function": "Vlastní funkce",
|
||||
"Custom functions": "Vlastní funkce",
|
||||
"Ok": "OK"
|
||||
"Ok": "OK",
|
||||
"Add macros": "Přidejte makra",
|
||||
"Add custom function": "Přidejte vlastní funkce"
|
||||
}
|
||||
@ -12,5 +12,7 @@
|
||||
"Unmake autostart": "Deshacer el inicio automático",
|
||||
"Custom function": "Función personalizada",
|
||||
"Custom functions": "Funciones personalizadas",
|
||||
"Ok": "OK"
|
||||
"Ok": "OK",
|
||||
"Add macros": "Añadir macros",
|
||||
"Add custom function": "Añadir función personalizada"
|
||||
}
|
||||
@ -12,5 +12,7 @@
|
||||
"Unmake autostart": "Annuler le démarrage automatique",
|
||||
"Custom function": "Fonction personnalisée",
|
||||
"Custom functions": "Fonctions personnalisées",
|
||||
"Ok": "OK"
|
||||
"Ok": "OK",
|
||||
"Add macros": "Ajouter des macros",
|
||||
"Add custom function": "Ajouter une fonction personnalisée"
|
||||
}
|
||||
@ -12,5 +12,7 @@
|
||||
"Unmake autostart": "Ativar o início automático",
|
||||
"Custom function": "Função personalizada",
|
||||
"Custom functions": "Funções personalizadas",
|
||||
"Ok": "OK"
|
||||
"Ok": "OK",
|
||||
"Add macros": "Adicionar macros",
|
||||
"Add custom function": "Adicionar função personalizada"
|
||||
}
|
||||
@ -12,5 +12,7 @@
|
||||
"Unmake autostart": "Отменить автозапуск",
|
||||
"Custom function": "Пользовательская функция",
|
||||
"Custom functions": "Пользовательские функции",
|
||||
"Ok": "OK"
|
||||
"Ok": "OK",
|
||||
"Add macros": "Добавить макросы",
|
||||
"Add custom function": "Добавить пользовательскую функцию"
|
||||
}
|
||||
@ -10,7 +10,9 @@
|
||||
"Copy": "副本",
|
||||
"Make autostart": "自动启动",
|
||||
"Unmake autostart": "取消自动启动",
|
||||
"Custom function": "自定义功能",
|
||||
"Custom functions": "自定义功能",
|
||||
"Ok": "确定"
|
||||
"Custom function": "自定义函数",
|
||||
"Custom functions": "自定义函数",
|
||||
"Ok": "确定",
|
||||
"Add macros": "添加宏",
|
||||
"Add custom function": "添加自定义函数"
|
||||
}
|
||||
Reference in New Issue
Block a user