Lines 208-214
Link Here
|
208 |
<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> |
208 |
<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> |
209 |
[% END %] |
209 |
[% END %] |
210 |
<!-- Modal --> |
210 |
<!-- Modal --> |
211 |
<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 %]"> |
211 |
<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 %]"> |
212 |
<div class="modal-dialog" role="document"> |
212 |
<div class="modal-dialog" role="document"> |
213 |
<div class="modal-content"> |
213 |
<div class="modal-content"> |
214 |
<div class="modal-header"> |
214 |
<div class="modal-header"> |
Lines 257-262
Link Here
|
257 |
</div> |
257 |
</div> |
258 |
</div> <!-- /.row --> |
258 |
</div> <!-- /.row --> |
259 |
|
259 |
|
|
|
260 |
[% INCLUDE 'modals/delete_vendor.inc' %] |
261 |
|
260 |
[% MACRO jsinclude BLOCK %] |
262 |
[% MACRO jsinclude BLOCK %] |
261 |
[% Asset.js("js/acquisitions-menu.js") | $raw %] |
263 |
[% Asset.js("js/acquisitions-menu.js") | $raw %] |
262 |
[% INCLUDE 'datatables.inc' %] |
264 |
[% INCLUDE 'datatables.inc' %] |
Lines 277-283
Link Here
|
277 |
var id = $(this).find("option:selected").val(); |
279 |
var id = $(this).find("option:selected").val(); |
278 |
window.location.href = "#vendor" + id; |
280 |
window.location.href = "#vendor" + id; |
279 |
}); |
281 |
}); |
280 |
$(".modal").on("shown.bs.modal", function(){ |
282 |
$(".add_to_basket").on("shown.bs.modal", function(){ |
281 |
var basket = $(this).data("basketno"); |
283 |
var basket = $(this).data("basketno"); |
282 |
var legend = _("Add order to basket %s").format(basket); |
284 |
var legend = _("Add order to basket %s").format(basket); |
283 |
$(this).find("h4").text( legend ); |
285 |
$(this).find("h4").text( legend ); |