Verstuur uw recent bekeken vakantiehuizen
U heeft recentelijk geen vakantiehuizen bekeken
Klik hier om vakantiehuizen te zoeken
Het vakantiehuis is toegevoegd aan uw verlanglijstje. Wilt u uw verlanglijstje nu zien?
-->
$(".powSearchAccItems").click(function() {
var url = $(this).attr("alt");
if (ForwardToAccommodation) {
redirect(url);
} else {
ForwardToAccommodation = true;
}
});
InitShowOnMap();
InitWishlistButtons();
});
function InitWishlistButtons() {
$("#WLAddConfirmDialog").dialog({
bgiframe: true,
autoOpen: false,
height: 150,
modal: true,
buttons: {
'Ja': function () {
// URL TO WISHLIST
redirect('sadfasdf');
$(this).dialog('close');
},
'Nee': function () {
$(this).dialog('close');
}
}
});
$(".btnRvRemove").click(function () {
RemoveVillaFromRecentlyViewedList($(this).attr("id").split("-")[1], 'icon-wishl-small');
ForwardToAccommodation = false;
});
$(".btnRvRemove").mouseover(function () {
$(this).attr("src", "/img/icons/icon-recently-viewed-del-over.png");
}).mouseout(function () {
$(this).attr("src", "/img/icons/icon-recently-viewed-del.png");
});
$("#btnRvRemoveAll").mouseover(function () {
$("#imgRvRemoveAll").attr("src", "/img/icons/icon-recently-viewed-delall-over.png");
}).mouseout(function () {
$("#imgRvRemoveAll").attr("src", "/img/icons/icon-recently-viewed-delall.png");
});
}
function updateFilter($input, clickedFilterUrl, $filter, urlSnippet, baseSearchString, isMultiSelect){
location.href = clickedFilterUrl;
}
function LoadImagesWhileScrolling(pos) {
$(".searchResultImg").each(function () {
//if ($(this).attr('data-src') !== undefined) {
//console.log("pos: " + pos + " - offset: " + $(this).offset().top + " - image: " + $(this).attr("id"));
if (pos + 1000 > $(this).offset().top) {
$(this).attr("src", $(this).attr("data-src"));
//$(this).removeAttr("data-src");
}
//}
});
}
function LoadNextPage() {
//bLzStillLoading = true;
var a = "JHx9cmVjZW50LWJla2VrZW4kfH0=";
a = $.base64.decode(a);
var b = a.split('$|}').join('/');
var finalUrl = b + iLzLoadNextPage + ".html?req=lzyl&t=56ac7cab0e";
$.ajax({
type: "GET",
url: finalUrl,
dataType: "html",
success: function (msg) {
if ($.trim(msg) == "Eof") {
bLzEof = true;
} else if ($.trim(msg) == "Wlsid") {
$(location).attr('href',b);
} else {
$("#SearchTabList").append(msg);
switch(selectedView) {
case 'GridView':
GridView();
break;
case 'ImageView':
ImageView();
break;
}
iLzLoadNextPage++;
$("body").tmLazyLoader.setStillExecuting(false);
InitShowOnMap();
}
$("#lzAjaxLoader").hide();
},
beforeSend: function (evt) {
$("#lzAjaxLoader").show();
},
error: function (evt) {
$("body").tmLazyLoader.setStillExecuting(false);
$("#lzAjaxLoader").hide();
console.log(evt);
}
});
}