Closed (duplicate)
Project:
Image FUpload
Version:
6.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Jul 2009 at 11:41 UTC
Updated:
16 Jul 2009 at 12:05 UTC
In swfupload-settings.tpl.php a function is assigned to window.onload without taking care of the possibility that there may already be some assignment by another module or theme.
It would cause less destruction by doing the assignment with some code like that:
function addOnLoad(nextOnLoad) {
var prevOnLoad = window.onload;
if (typeof window.onload != 'function') {
window.onload = nextOnLoad;
} else {
window.onload = function() {
prevOnLoad();
nextOnLoad();
}
}
}
addOnLoad(yourOnLoad);
Also it should be noted in the modules description, that there may be other modules/themes overriding the onload setting, what will prevent the appearance of the select_images.png button, which is an annoying non-error-message issue.
Comments
Comment #1
grandcat commentedThank you for your efforts. Nevertheless, a "Drupal" solution was already found.
#476718: Javascript conflict error