<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
Owen Leonard a écrit :
<blockquote
 cite="mid:CAO4qe2NY8F0k9BSPTfDw_T82pmvDUPwtowb9pbW2PTwwy7i-oA@mail.gmail.com"
 type="cite">
  <blockquote type="cite">
    <pre wrap="">My idea :
If there are non cancelled orders in the baskets, create a js popup alert
    </pre>
  </blockquote>
  <pre wrap=""><!---->
You can't create a JavaScript-only alert with three buttons. This does
not exist.

I see a couple of choices:

1. Handle the operation without JavaScript and use a <div
class="dialog alert"> in the body of the page to offer the choice of
actions. Of course this would involve a trip to the server and a page
reload.
  </pre>
</blockquote>
I have seen things like that, yes. Maybe to big a change.<br>
<br>
<blockquote
 cite="mid:CAO4qe2NY8F0k9BSPTfDw_T82pmvDUPwtowb9pbW2PTwwy7i-oA@mail.gmail.com"
 type="cite">
  <pre wrap="">
2. Use a Bootstrap modal:
<a class="moz-txt-link-freetext" href="http://getbootstrap.com/2.3.2/javascript.html#modals">http://getbootstrap.com/2.3.2/javascript.html#modals</a> An example of
this can be found in acqui/basket.tt.

Option 2 is probably most like what you're imagining.

  -- Owen

  </pre>
</blockquote>
That's it!<br>
<br>
I had thought using jquery ui "dialog" like on that page, but I don't
think it is used in Koha : <br>
<a class="moz-txt-link-freetext" href="http://jqueryui.com/dialog/#modal-confirmation">http://jqueryui.com/dialog/#modal-confirmation</a><br>
<br>
Thanks a lot<br>
-- <br>
<pre class="moz-signature" cols="72">Mathieu Saby
Service d'Informatique Documentaire
Service Commun de la Documentation
Université Rennes 2
Téléphone : 02 99 14 12 65
Courriel : <a class="moz-txt-link-abbreviated" href="mailto:mathieu.saby@univ-rennes2.fr">mathieu.saby@univ-rennes2.fr</a>
</pre>
</body>
</html>