Send your list of recently viewed villas
You have not viewed any villas recently
Click here to start searching for villas
The villa was added to the wishlist. Would you like to see the wishlist now?
-->
$(".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: {
'yes': function () {
// URL TO WISHLIST
redirect('sadfasdf');
$(this).dialog('close');
},
'No': 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 = "JHx9cmVjZW50bHktdmlld2VkJHx9";
a = $.base64.decode(a);
var b = a.split('$|}').join('/');
var finalUrl = b + iLzLoadNextPage + ".html?req=lzyl&t=fcfa6b1270";
$.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);
}
});
}