[Koha-cvs] CVS: koha/koha-tmpl/intranet-tmpl/default/en/bull subscription-detail.tmpl,1.6.2.1,1.6.2.2
Paul POULAIN
tipaul at users.sourceforge.net
Tue Mar 8 21:46:46 CET 2005
Update of /cvsroot/koha/koha/koha-tmpl/intranet-tmpl/default/en/bull
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24968/koha-tmpl/intranet-tmpl/default/en/bull
Modified Files:
Tag: rel_2_2
subscription-detail.tmpl
Log Message:
adding (javascript) confirmation button before deleting a subscription
Index: subscription-detail.tmpl
===================================================================
RCS file: /cvsroot/koha/koha/koha-tmpl/intranet-tmpl/default/en/bull/subscription-detail.tmpl,v
retrieving revision 1.6.2.1
retrieving revision 1.6.2.2
diff -C2 -r1.6.2.1 -r1.6.2.2
*** subscription-detail.tmpl 11 Jan 2005 15:07:59 -0000 1.6.2.1
--- subscription-detail.tmpl 8 Mar 2005 20:46:41 -0000 1.6.2.2
***************
*** 7,11 ****
<a href="/cgi-bin/koha/MARCdetail.pl?bib=<!-- TMPL_VAR name="biblionumber" -->" class="button bull">Biblio</a>
<!-- TMPL_UNLESS name="totalissues" -->
! <a href="subscription-detail.pl?subscriptionid=<!-- TMPL_VAR name="subscriptionid" -->&op=del" class="button bull">Delete subscription</a>
<!-- /TMPL_UNLESS -->
<form method="post" name="f">
--- 7,13 ----
<a href="/cgi-bin/koha/MARCdetail.pl?bib=<!-- TMPL_VAR name="biblionumber" -->" class="button bull">Biblio</a>
<!-- TMPL_UNLESS name="totalissues" -->
! <a href="javascript:confirm_deletion()" class="button bull">
! delete
! </a>
<!-- /TMPL_UNLESS -->
<form method="post" name="f">
***************
*** 177,180 ****
</div>
</div>
!
<!-- TMPL_INCLUDE NAME="bull-bottom.inc" -->
\ No newline at end of file
--- 179,190 ----
</div>
</div>
! <script>
! function _(s) { return s } // dummy function for gettext
! function confirm_deletion() {
! var is_confirmed = confirm(_('Are you sure you want to delete this subscription?'));
! if (is_confirmed) {
! window.location="subscription-detail.pl?subscriptionid=<!-- TMPL_VAR name="subscriptionid" -->&op=del";
! }
! }
! </script>
<!-- TMPL_INCLUDE NAME="bull-bottom.inc" -->
\ No newline at end of file
More information about the Koha-cvs
mailing list