Skip to content

Commit

Permalink
[BUGFIX] Skip setup if basket-bulk not available
Browse files Browse the repository at this point in the history
This patch skips the seup of the basket-bulk if not present on the current page like done for the basket-mini bellow.
  • Loading branch information
gilbertsoft committed Dec 13, 2019
1 parent 369a657 commit 1cf685a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion client/html/themes/aimeos.js
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,13 @@ AimeosBasketBulk = {
*/
setup: function() {

$.ajax($(".aimeos.basket-bulk[data-jsonurl]").data("jsonurl"), {
var jsonurl = $(".aimeos.basket-bulk[data-jsonurl]").data("jsonurl");

if(typeof jsonurl === 'undefined' || jsonurl == '') {
return;
}

$.ajax(jsonurl, {
"method": "OPTIONS",
"dataType": "json"
}).then(function(options) {
Expand Down

0 comments on commit 1cf685a

Please sign in to comment.