In Popups.addCSS any CSS that is added to the page is saved as
Popups.addedCSS[href] = 1;

Then in restorePage it attempts to remove the CSS with the following;
$('link[href='+ Popups.addedCSS[i] + ']').remove();
where 'i' is an iterator over Popups.addedCSS this is always evaluated as the following;
$('link[href='1'].remove();

Attached patch resolves the issue for me.

CommentFileSizeAuthor
popups.diff547 bytesjgraham

Comments

mattcasey’s picture

This patch works for me.. all the extra CSS files mess up my theme in IE, but this at least returns it to normal once the popup disappears.