Template Switch attachment

Версия 1.1 от Alexey Semenihin на 27.05.2025 06:20
Предупреждение
Из соображений безопасности документ отображается в ограниченном режиме, поскольку это не текущая версия. Из-за этого могут быть расхождения и ошибки.

Не удалось выполнить макрос [velocity]. Причина: [The execution of the [velocity] script macro is not allowed in [reglaments:Macros.Template Switch attachment.WebHome]. Check the rights of its last author or the parameters if it's rendered from another script.]. Нажмите на это сообщение для получения подробной информации.

Не удалось выполнить макрос [velocity]. Причина: [The execution of the [velocity] script macro is not allowed in [reglaments:Macros.Template Switch attachment.WebHome]. Check the rights of its last author or the parameters if it's rendered from another script.]. Нажмите на это сообщение для получения подробной информации.

Не удалось выполнить макрос [velocity]. Причина: [The execution of the [velocity] script macro is not allowed in [reglaments:Macros.Template Switch attachment.WebHome]. Check the rights of its last author or the parameters if it's rendered from another script.]. Нажмите на это сообщение для получения подробной информации.

// Ждём загрузки DOM
document.observe("dom:loaded", function() {
// Находим ссылку на вкладку "Вложения" (по ID или тексту)
var attachmentsTab = $('Attachmentslink');

// Если вкладка найдена, имитируем клик
if (attachmentsTab) {
attachmentsTab.click();
}
// Альтернативный вариант (если не сработал ID):
else {
var tabs = $$('.tab-menu a').find(function(tab) {
return tab.textContent.trim().includes('Вложения');
});
if (tabs && tabs.length > 0) tabs[0].click();
}
});

Не удалось выполнить макрос [velocity]. Причина: [The execution of the [velocity] script macro is not allowed in [reglaments:Macros.Template Switch attachment.WebHome]. Check the rights of its last author or the parameters if it's rendered from another script.]. Нажмите на это сообщение для получения подробной информации.