From b4308ee5abcfc76dfc14797f68ae177ea4bbf6b2 Mon Sep 17 00:00:00 2001 From: Stefan Frech Date: Thu, 12 Jun 2008 19:14:20 +0000 Subject: [PATCH] Adding the 'select all' possibility to the bookmarks header. --- bookmarks.php | 29 +++++++++++++++-------------- index.php | 2 +- lib/lib.js | 4 ++-- style.css | 3 --- 4 files changed, 18 insertions(+), 20 deletions(-) diff --git a/bookmarks.php b/bookmarks.php index 9229269..fbb21cc 100644 --- a/bookmarks.php +++ b/bookmarks.php @@ -49,18 +49,7 @@ function list_bookmarks ($bookmarks, $show_checkbox, $show_folder, $show_icon, $ echo "\t" . '
' . "\n"; # the checkbox if ($show_checkbox){ - echo "\t\t" . '' . "\n"; - } - - # the favicon - echo "\t\t"; - if ($show_icon){ - if ($value['favicon'] && is_file ($value['favicon'])) { - echo ''; - } - else { - echo $bookmark_image; - } + echo "\t\t" . '' . "\n"; } echo "\n\t
\n"; @@ -97,9 +86,20 @@ function list_bookmarks ($bookmarks, $show_checkbox, $show_folder, $show_icon, $ echo sprintf ($delete_image, "Delete"); echo "\n"; } - echo "\t\n"; + # the favicon + echo "\t" . '\n"; # the description and if not empty if ($show_desc && $value['description'] != "") { diff --git a/index.php b/index.php index 00d216d..ea4623c 100644 --- a/index.php +++ b/index.php @@ -135,7 +135,7 @@ else {
- +
diff --git a/lib/lib.js b/lib/lib.js index c6ee7fb..a2e6b7d 100644 --- a/lib/lib.js +++ b/lib/lib.js @@ -89,7 +89,7 @@ var parameter=''; http://www.squarefree.com/bookmarklets/ */ -function selection(boxes){ +function selectthem(boxes, stat){ var x,k,f,j; x=document.forms; @@ -107,7 +107,7 @@ function selection(boxes){ f[j].checked = !f[j].checked ; } else if (boxes == "checkall") { - f[j].checked = document.getElementsByName('CheckAll')[0].checked; + f[j].checked = stat; } } } diff --git a/style.css b/style.css index c1c7f9c..c29b568 100644 --- a/style.css +++ b/style.css @@ -166,9 +166,6 @@ div.description { div.description, span.private, span.public, span.date { font-size: smaller; } -input.link { - margin: 0; -} .invisible { visibility: hidden; }