'); }, success: function(data) { disabledReservation = 0; var obj = jQuery.parseJSON( data ); if (obj.success == false) { alert('Prišlo je do napake pri rezervaciji. Poskusite kasneje.'); btn.html(btn_html); } else { window.location = '/telefonska-rezervacija/' + obj.reservationkey; } } }); }); }); var TerminNoFilter = 0;var CityBreak = 0;var SafariBrowser = 0;var SEARCHID = 6155006; var LabelaCena = ''; var SteviloPonudb = 0; var disabledReservation = 0; var ExtraTerminFilter = "∨ganizatorji=SONH∨glab=Sonček&odhod=2019-06-02&trajanje=7"; var HTTPREFERER = "" function noOfferFunct(aGid) { $.ajax ({ url:"/_ajax/offer-list.php", type:'POST', data: "action=get&id=6155006&specialNoOffer=1&noOfferGid=" + aGid, success: function(data) { $('#ponudbaResults').html(data); $('.gallery-wr').each(function() { var num_images = $('li',this).length; $('.gallery-start').show(); if (num_images > 3) $(this).find('.gallery-start').show(); else $(this).find('.gallery-start').hide(); }) } }); } function runAfterOfferLoad() { //alert(1); //$('#blogtrigger').trigger('click'); }