I replaced the following code in /data/templates/editbookmark.tpl.php
<scripttype="text/javascript">
var browser=navigator.appName;
if (browser == "Opera")
{
document.write('<?phpechosprintf(T_("Click one of the following bookmarklets to add a button you can click whenever you want to add the page you are on to %s"),jsEscTitle($GLOBALS['sitename']));?>:</p>');
}
else
{
document.write('<?phpechosprintf(T_("Drag one of the following bookmarklets to your browser's bookmarks and click it whenever you want to add the page you are on to %s"),jsEscTitle($GLOBALS['sitename']));?>:</p>');
}
var selection = '';
if (window.getSelection) {
selection = 'window.getSelection()';
} else if (document.getSelection) {
selection = 'document.getSelection()';
} else if (document.selection) {
selection = 'document.selection.createRange().text';
}
document.write('<ul>');
if (browser == "Opera")
{
document.write('<li><aclass="bookmarklet"href="opera:/button/Go%20to%20page,%20%22javascript:x=document;a=encodeURIComponent(x.location.href);t=encodeURIComponent(x.title);d=encodeURIComponent('+selection+');location.href=\'<?phpechocreateURL('bookmarks',$GLOBALS['user']);?>?action=add&address=\'+a+\'&title=\'+t+\'&description=\'+d;void 0%22;,,%22Post%20to%20<?phpechojsEscTitle($GLOBALS['sitename']);?>%22,%22Scuttle%22"><?phpechojsEscTitle(sprintf(T_('Post to %s'),$GLOBALS['sitename']));?><\/a><\/li>');
document.write('<li><aclass="bookmarklet"href="opera:/button/Go%20to%20page,%20%22javascript:x=document;a=encodeURIComponent(x.location.href);t=encodeURIComponent(x.title);d=encodeURIComponent('+selection+');open(\'<?phpechocreateURL('bookmarks',$GLOBALS['user']);?>?action=add&popup=1&address=\'+a+\'&title=\'+t+\'&description=\'+d,\'<?phpechojsEscTitle($GLOBALS['sitename']);?>\',\'modal=1,status=0,scrollbars=1,toolbar=0,resizable=1,width=790,height=465,left=\'+(screen.width-790)/2+\',top=\'+(screen.height-425)/2);void 0;%22,,%22Post%20to%20<?phpechourlencode($GLOBALS['sitename']);?>%20(Pop-up)%22,%22Scuttle%22"><?phpechojsEscTitle(sprintf(T_('Post to %s (Pop-up)'),$GLOBALS['sitename']));?><\/a><\/li>');
}
else
{
document.write('<li><aclass="bookmarklet"href="javascript:x=document;a=encodeURIComponent(x.location.href);t=encodeURIComponent(x.title);d=encodeURIComponent('+selection+');location.href=\'<?phpechocreateURL('bookmarks',$GLOBALS['user']);?>?action=add&address=\'+a+\'&title=\'+t+\'&description=\'+d;void 0;"><?phpechojsEscTitle(sprintf(T_('Post to %s'),$GLOBALS['sitename']));?><\/a><\/li>');
document.write('<li><aclass="bookmarklet"href="javascript:x=document;a=encodeURIComponent(x.location.href);t=encodeURIComponent(x.title);d=encodeURIComponent('+selection+');open(\'<?phpechocreateURL('bookmarks',$GLOBALS['user']);?>?action=add&popup=1&address=\'+a+\'&title=\'+t+\'&description=\'+d,\'<?phpechojsEscTitle($GLOBALS['sitename']);?>\',\'modal=1,status=0,scrollbars=1,toolbar=0,resizable=1,width=790,height=465,left=\'+(screen.width-790)/2+\',top=\'+(screen.height-425)/2);void 0;"><?phpechojsEscTitle(sprintf(T_('Post to %s (Pop-up)'),$GLOBALS['sitename']));?><\/a><\/li>');
}
document.write('<\/ul>');
</script>
with the one from scuttle project
<scripttype="text/javascript">varselection='';if(window.getSelection){selection='window.getSelection()';}elseif(document.getSelection){selection='document.getSelection()';}elseif(document.selection){selection='document.selection.createRange().text';}document.write('<ul>');document.write('<li><a href="javascript:x=document;a=encodeURIComponent(x.location.href);t=encodeURIComponent(x.title);d=encodeURIComponent('+selection+');location.href=\'<?phpechocreateURL('bookmarks',$GLOBALS['user']);?>?action=add&address=\'+a+\'&title=\'+t+\'&description=\'+d;void 0;"><?phpechosprintf(T_('Post to %s'),$GLOBALS['sitename']);?><\/a><\/li>');document.write('<li><a href="javascript:x=document;a=encodeURIComponent(x.location.href);t=encodeURIComponent(x.title);d=encodeURIComponent('+selection+');open(\'<?phpechocreateURL('bookmarks',$GLOBALS['user']);?>?action=add&popup=1&address=\'+a+\'&title=\'+t+\'&description=\'+d,\'<?phpecho$GLOBALS['sitename'];?>\',\'modal=1,status=0,scrollbars=1,toolbar=0,resizable=1,width=730,height=465,left=\'+(screen.width-730)/2+\',top=\'+(screen.height-425)/2);void 0;"><?phpechosprintf(T_('Post to %s (Pop-up)'),$GLOBALS['sitename']);?><\/a><\/li>');document.write('<\/ul>');</script>
and it worked fine until the bug is resolved
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I replaced the following code in /data/templates/editbookmark.tpl.php
with the one from scuttle project
and it worked fine until the bug is resolved