[Koha-patches] [PATCH] (bug #2887) Change the "Cart" box from js to tmpl

Joe Atzberger joe.atzberger at liblime.com
Wed Jan 7 18:13:05 CET 2009


The conventional fix has been to default the element style to hidden (or
display:none), and reveal it w/ jQuery on document.ready.  That way it is
hidden to non-js users.  Any structural problems with this approach from
your perspective, Owen?

--joe

On Wed, Jan 7, 2009 at 12:08 PM, Owen Leonard <oleonard at myacpl.org> wrote:

> > -<!-- TMPL_IF NAME="opacbookbag" --><span id="cmspan"></span><!--
> /TMPL_IF -->
> > +<!-- TMPL_IF NAME="opacbookbag" --><span id="cmspan"><a href="#"
> id="cartmenulink" class=\"\"><i></i><span><i></i><span></span><img
> src="/opac-tmpl/prog/images/cart.gif" width="14" height="14" alt=""
> border="0" /> Cart<span id="basketcount"></span></span></a></span><!--
> /TMPL_IF -->
>
> The trouble with this change is that now the Cart link will appear to
> users who have Javascript turned off. I realize that this is probably
> a tiny number of users, but all the same I wish we could find a
> solution to this translation problem that kept display of the Cart
> button a Javascript-based event.
>
>  -- Owen
>
> --
> Web Developer
> Athens County Public Libraries
> http://www.myacpl.org
> _______________________________________________
> Koha-patches mailing list
> Koha-patches at lists.koha.org
> http://lists.koha.org/mailman/listinfo/koha-patches
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/koha-patches/attachments/20090107/5a06f0ba/attachment.htm>


More information about the Koha-patches mailing list