I like the Add to Bookmarks javascript you provide. However, I think
that add.php should not include the menus in popup mode, so I suggest
the following tweak. On line 75 instead of
require TREAN_TEMPLATES . '/menu.inc';
It should be:
if( !Util::getFormData( 'popup' ) ) {
require TREAN_TEMPLATES . '/menu.inc';
}
Thanks for the useful tool.
Rob