forked from extern/egroupware
"fixed error if FCKeditorAPI was not loaded (no FCK on the page), which cause the selected tab no longer be returned to the app"
This commit is contained in:
parent
defef645e2
commit
8c71320f44
@ -72,6 +72,7 @@ function activate_tab(tab,all_tabs,name)
|
||||
// activate FCK in newly activated tab for Gecko browsers
|
||||
if (!document.all)
|
||||
{
|
||||
try {
|
||||
var t = document.getElementById(tab);
|
||||
var inputs = t.getElementsByTagName('input');
|
||||
for (i = 0; i < inputs.length;i++) {
|
||||
@ -83,6 +84,8 @@ function activate_tab(tab,all_tabs,name)
|
||||
}
|
||||
}
|
||||
}
|
||||
catch(e) { } // ignore the error if FCKeditorAPI is not loaded
|
||||
}
|
||||
if (name) {
|
||||
set_element(document.eTemplate,name,tab);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user