There is an error in Responsive menu when i use search items:
The Items are dynamics create with sc_appmenu_add_item macro.
Hi, i did a responsive menu with items dynamics and the option search not found nothing.
There is an error in Responsive menu when i use search items:
The Items are dynamics create with sc_appmenu_add_item macro.
Hi, i did a responsive menu with items dynamics and the option search not found nothing.
Dear @alvagar,
The problem has already been identified and reported for correction.
As soon as the fix is released, we will be providing feedback through this thread.
Best regards!
Hi, When you fixing this bug?
My Customers continue waiting,
This problem was reported some time ago. Sc team please we need you solve it.
The bug has not yet been fixed by the SC team. (After 1 year)
The fix for the reported issue was released in version 9.12.026, which is now available for download/update.
Best regards!
If you use previous version of scriptcase <= 9.12.025 please copy on your menu app in onApplicationInit event
IMPORTANT ! replace “appmenu” with the name of your application menu. keep “_iframe”
// onApplicationInit
?>
<script>
window.addEventListener('load', () => {
// para el error del cambio de target de la opcion de busqueda
function reemplazarTarget(obj) {
if (typeof obj !== 'object' || obj === null) return;
for (let key in obj) {
if (obj.hasOwnProperty(key)) {
if (typeof obj[key] === 'object') {
reemplazarTarget(obj[key]); // Recursión para objetos anidados
} else {
if (key === 'target' || key === 'link_target') {
//replace "appmenu" with the name of your application menu
if (obj[key] === 'appmenu_iframe') { // reemplazá "appmenu" por el nombnre de tu aplicacion menu
obj[key] = 'nm_frame_app';
}
}
}
}
}
}
if (typeof items_data !== 'undefined') {
for (let i = 0; i < items_data.length; i++) {
reemplazarTarget(items_data[i]);
}
}
// fin de reemplazar target
});
</script>
<?php