Users were complaining that image pop ups would only work on the first thumbnail.
What was happening is when they clicked on a second thumbnail the pop up would "pop under" and not be visible.
I went in img_assist.js and commented out
/*function launch_popup(nid, mw, mh) {
var ox = mw;
var oy = mh;
if((ox>=screen.width) || (oy>=screen.height)){
var ox = screen.width-150;
var oy = screen.height-150;
var winx = (screen.width / 2)-(ox / 2);
var winy = (screen.height / 2)-(oy / 2);
var use_scrollbars = 1;
}
else{
var winx = (screen.width / 2)-(ox / 2);
var winy = (screen.height / 2)-(oy / 2);
var use_scrollbars = 0;
}
var win = window.open(BASE_URL + 'index.php?q=img_assist/popup/' + nid, 'imagev', 'height='+oy+'-10,width='+ox+',top='+winy+',left='+winx+',scrollbars='+use_scrollbars+',resizable');
}
*/
and replaced it with
function launch_popup(nid, mw, mh) {
var wins = new Array(); // Remember each separate window name.
var ox = mw;
var oy = mh;
if ((ox>=screen.width) || (oy>=screen.height)) {
var ox = screen.width-150;
var oy = screen.height-150;
var use_scrollbars = 1;
}
var winx = (screen.width / 2)-(ox / 2);
var winy = (screen.height / 2)-(oy / 2);
// Issue close to all currently open windows.