I am looking at this task and have a question for you.
'in-portal:main_import' => Array (
'parent' => 'in-portal:tools',
'icon' => 'import_data',
'label' => 'la_tab_ImportData',
'url' => Array ('t' => 'tools/import1'),
'onclick' => 'direct_edit(\'adm\', this.href);',
'permissions' => Array ('view'),
'priority' => 3,
'type' => stTREE,
),
Looks like the problem is that in direct_edit JS method we are NOT considering that URL needs to to be opened in a Main frame and not the current one.
I think we can pass here the Target Frame name?
function direct_edit($prefix_special, $url) {
if (use_popups($prefix_special, '')) {
openSelector($prefix_special, $url);
}
else {
redirect($url);
}
return false;
}
Thanks