Envoyer la liste des villas que vous avez regardé récemment
Vous n'avez regardé aucune villa récemment
Cliquez ici pour commencer à rechercher des villas
La villa a été ajouté à vos favoris. Souhaitez vous voir vos favoris maintenant?
-->
$(".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: {
'Oui': function () {
// URL TO WISHLIST
redirect('sadfasdf');
$(this).dialog('close');
},
'Non': 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 = "JHx9dnVlLXJlY2VtbWVudCR8fQ==";
a = $.base64.decode(a);
var b = a.split('$|}').join('/');
var finalUrl = b + iLzLoadNextPage + ".html?req=lzyl&t=e09da850bf";
$.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);
}
});
}