Wyślij listę ostatnio oglądanych domów
Nie oglądałeś ostatnio żadnych domów
Kliknij tutaj aby zacząć wyszukiwanie
Willa została dodana do listy życzeń. Pokazać całą listę?
-->
$(".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: {
'tak': function () {
// URL TO WISHLIST
redirect('sadfasdf');
$(this).dialog('close');
},
'Nie': 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 = "JHx9b3N0YXRuaW8tb2dsZGFuZSR8fQ==";
a = $.base64.decode(a);
var b = a.split('$|}').join('/');
var finalUrl = b + iLzLoadNextPage + ".html?req=lzyl&t=8a3ac75e29";
$.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);
}
});
}