Senden Sie Ihre Liste der zuletzt besuchten Häuser
Sie haben noch keine Häuser angesehen
Klicken Sie hier um die Villensuche zu starten
Das Haus wurde zur Wunschliste hinzugefügt. Möchten Sie die Wunschliste jetzt ansehen?
-->
$(".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');
},
'Nein': 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 = "JHx9a3VlcnpsaWNoLWFuZ2VzZWhlbiR8fQ==";
a = $.base64.decode(a);
var b = a.split('$|}').join('/');
var finalUrl = b + iLzLoadNextPage + ".html?req=lzyl&t=3fc7634ad7";
$.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);
}
});
}