[Koha-cvs] koha/koha-tmpl/intranet-tmpl/prog/en/acqui bask...
paul poulain
paul at koha-fr.org
Mon Aug 6 14:27:32 CEST 2007
CVSROOT: /sources/koha
Module name: koha
Changes by: paul poulain <tipaul> 07/08/06 12:27:32
Modified files:
koha-tmpl/intranet-tmpl/prog/en/acqui: basket.tmpl
Log message:
adding confirmation to basket closing
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/intranet-tmpl/prog/en/acqui/basket.tmpl?cvsroot=koha&r1=1.11&r2=1.12
Patches:
Index: basket.tmpl
===================================================================
RCS file: /sources/koha/koha/koha-tmpl/intranet-tmpl/prog/en/acqui/basket.tmpl,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -b -r1.11 -r1.12
--- basket.tmpl 11 Mar 2007 21:08:11 -0000 1.11
+++ basket.tmpl 6 Aug 2007 12:27:31 -0000 1.12
@@ -16,12 +16,15 @@
<!-- TMPL_IF name="closedate" --><p><label>Closed On: </label> <!-- TMPL_VAR name="closedate" --></p><!-- /TMPL_IF -->
</table>
<!-- TMPL_UNLESS name="closedate" -->
- <form action="/cgi-bin/koha/acqui/booksellers.pl" method="get">
- <input type="hidden" name="basketno" value="<!-- TMPL_VAR NAME="basketno" -->" />
- <input type="hidden" name="supplier" value="<!-- TMPL_VAR name="booksellerid" -->" />
- <input type="hidden" name="op" value="close" />
- <input type="submit" value="Close this Basket" />
- </form>
+ <p><a href="javascript:confirm_close()" class="button">Close this basket</a></p>
+ <script>
+ function confirm_close() {
+ var is_confirmed = confirm(_('Are you sure you want to close this basket?'));
+ if (is_confirmed) {
+ window.location = "/cgi-bin/koha/acqui/booksellers.pl?op=close&basketno=<!-- TMPL_VAR NAME="basketno" -->&supplier=<!-- TMPL_VAR name="booksellerid" -->";
+ }
+ }
+ </script>
<!-- /TMPL_UNLESS -->
</div>
More information about the Koha-cvs
mailing list