]> gitweb.fluxo.info Git - semanticscuttle.git/commitdiff
embed the delete link directly in html instead of using javascript
authorChristian Weiske <cweiske@cweiske.de>
Sat, 9 Oct 2010 10:15:11 +0000 (12:15 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Sat, 9 Oct 2010 10:15:11 +0000 (12:15 +0200)
data/templates/bookmarks.tpl.php

index 29d724815d6729513aa650b7c9ecab1d7b3467e6..db560f233d44afde82d3b79400d654c0347ab17d 100644 (file)
@@ -296,10 +296,9 @@ if ($currenttag!= '') {
                        $edit = ' - <a href="' . createURL('edit', $row['bId']) . '">'
                 . T_('Edit')
                 . '</a>'
-                . '<script type="text/javascript">'
-                . 'document.write(" - <a href=\"#\" onclick=\"deleteBookmark(this, '. $row['bId'] .'); return false;\">'
+                . ' <a href="#" onclick="deleteBookmark(this, '. $row['bId'] .'); return false;">'
                 . T_('Delete')
-                .'<\/a>");</script>';
+                .'</a>';
                }
 
                // Last update