Lines 201-207
Link Here
|
201 |
<a class="btn btn-default btn-xs" id="addtoBasketLabel[% basket.basketno | html %]" href="#addtoBasket[% basket.basketno | html %]" role="button" data-toggle="modal"><i class="fa fa-plus"></i> Add to basket</a> |
201 |
<a class="btn btn-default btn-xs" id="addtoBasketLabel[% basket.basketno | html %]" href="#addtoBasket[% basket.basketno | html %]" role="button" data-toggle="modal"><i class="fa fa-plus"></i> Add to basket</a> |
202 |
[% END %] |
202 |
[% END %] |
203 |
<!-- Modal --> |
203 |
<!-- Modal --> |
204 |
<div id="addtoBasket[% basket.basketno | html %]" class="modal" tabindex="-1" role="dialog" aria-labelledby="addtoBasketLabel[% basket.basketno | html %]" aria-hidden="true" data-basketno="[% basket.basketname | html %]"> |
204 |
<div id="addtoBasket[% basket.basketno | html %]" class="modal add_to_basket" tabindex="-1" role="dialog" aria-labelledby="addtoBasketLabel[% basket.basketno | html %]" aria-hidden="true" data-basketno="[% basket.basketname | html %]"> |
205 |
<div class="modal-dialog" role="document"> |
205 |
<div class="modal-dialog" role="document"> |
206 |
<div class="modal-content"> |
206 |
<div class="modal-content"> |
207 |
<div class="modal-header"> |
207 |
<div class="modal-header"> |
Lines 250-255
Link Here
|
250 |
</div> |
250 |
</div> |
251 |
</div> <!-- /.row --> |
251 |
</div> <!-- /.row --> |
252 |
|
252 |
|
|
|
253 |
[% INCLUDE 'modals/delete_vendor.inc' %] |
254 |
|
253 |
[% MACRO jsinclude BLOCK %] |
255 |
[% MACRO jsinclude BLOCK %] |
254 |
[% Asset.js("js/acquisitions-menu.js") | $raw %] |
256 |
[% Asset.js("js/acquisitions-menu.js") | $raw %] |
255 |
[% INCLUDE 'datatables.inc' %] |
257 |
[% INCLUDE 'datatables.inc' %] |
Lines 270-276
Link Here
|
270 |
var id = $(this).find("option:selected").val(); |
272 |
var id = $(this).find("option:selected").val(); |
271 |
window.location.href = "#vendor" + id; |
273 |
window.location.href = "#vendor" + id; |
272 |
}); |
274 |
}); |
273 |
$(".modal").on("shown.bs.modal", function(){ |
275 |
$(".add_to_basket").on("shown.bs.modal", function(){ |
274 |
var basket = $(this).data("basketno"); |
276 |
var basket = $(this).data("basketno"); |
275 |
var legend = _("Add order to basket %s").format(basket); |
277 |
var legend = _("Add order to basket %s").format(basket); |
276 |
$(this).find("h4").text( legend ); |
278 |
$(this).find("h4").text( legend ); |