Converting check all/none to text links as we have now in the OPAC
authorOwen Leonard <oleonard@myacpl.org>
Mon, 25 Feb 2008 21:34:33 +0000 (10:34 +1300)
committerJoshua Ferraro <jmf@liblime.com>
Wed, 27 Feb 2008 15:02:45 +0000 (09:02 -0600)
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css
koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tmpl

index aca700b..7c6c4e6 100644 (file)
@@ -1445,4 +1445,8 @@ ul#i18nMenu li.more ul li a {
   height:100%;
   overflow:auto;
  }
+
+#CheckAll, #CheckNone {
+       font-weight : normal;
+       margin : 0 .5em 0 0;
+}
\ No newline at end of file
index 4d1ae60..7259088 100644 (file)
@@ -7,18 +7,14 @@
 
 $(document).ready(function(){
        $("#addbarcode").focus();
-    $("th.checkall").html("<a href=\"/cgi-bin/koha/shelves.pl\" id=\"CheckAll\"><img src=\"<!-- TMPL_VAR NAME="themelang" -->/../img/checkall.gif\" height=\"18\" width=\"18\" alt=\"Check All\" title=\"Check All\" border=\"0\" /></a>");
+       $("span.clearall").html("<a id=\"CheckNone\" href=\"/cgi-bin/koha/shelves.pl\">Clear All</a>");
+       $("span.checkall").html("<a id=\"CheckAll\" href=\"/cgi-bin/koha/shelves.pl\">Select All</a>");
     $("#CheckAll").click(function(){
         $(".checkboxed").checkCheckboxes();
-        $("#CheckAll img").attr("src","<!-- TMPL_VAR NAME="themelang" -->/../img/checknone.gif").attr("title","Check None").attr("alt","Check None");
-                                                                                                                                       // FIXME: a checknone.gif image should be made!
-        $("#CheckAll").attr("id","CheckNone");
         return false;
     });
     $("#CheckNone").click(function(){
         $(".checkboxed").unCheckCheckboxes();
-        $("#CheckNone img").attr("src","<!-- TMPL_VAR NAME="themelang" -->/../img/checkall.gif").attr("title","Check All").attr("alt","Check All");
-        $("#CheckNone").attr("id","CheckAll");
         return false;
     });
 });
@@ -118,6 +114,7 @@ $(document).ready(function(){
         <input type="hidden" name="modifyshelfcontents" value="1" />
  <fieldset>
   <legend>Contents of <i><!-- TMPL_VAR NAME="shelfname" --></i></legend>
+  <p><span class="checkall"></span><span class="clearall"></span></p>
     <table>
             <tr>
                 <th class="checkall">&nbsp;</th>