EU Reiserecht - Booking
git-svn-id: http://78.47.251.156/svn/dev/sterntours-3@3419 f459cee4-fb09-11de-96c3-f9c5f16c3c76
This commit is contained in:
parent
8fd6f63403
commit
2360290f06
25 changed files with 1089 additions and 229 deletions
|
|
@ -28,12 +28,72 @@ $(document).ready(function() {
|
|||
|
||||
}).then(function(r) {
|
||||
summary$.html(r);
|
||||
$('#st-booking-price-set-table .st-total-price-set').html($(r).find('.st-total-price').text());
|
||||
$('#st-booking-price-set-table .st-deposit-price-set').html($(r).find('.st-deposit-price').text());
|
||||
$('#st-booking-price-set-table .st-final-price-set').html($(r).find('.st-final-price').text());
|
||||
|
||||
}, function() {
|
||||
summary$.html('Aufgrund eines Fehlers konnte kein Angebot ermittelt werden.');
|
||||
})
|
||||
});
|
||||
|
||||
$('#booking_request_departure').change(function () {
|
||||
//show nothing
|
||||
$('.flight_times_ele').hide();
|
||||
$('#no_flight_time').hide();
|
||||
$('#yes_flight_time').hide();
|
||||
|
||||
console.log($(this).val());
|
||||
if(!$(this).val() || $(this).find("option:selected").text().indexOf("Eigenanreise") == 0){
|
||||
return;
|
||||
}
|
||||
console.log($('#flight_time_'+$(this).val()).length);
|
||||
if($('#flight_time_'+$(this).val()).length){
|
||||
$('#flight_time_'+$(this).val()).show();
|
||||
$('#yes_flight_time').show();
|
||||
}else{
|
||||
$('#no_flight_time').show();
|
||||
}
|
||||
});
|
||||
var toggle_first = false;
|
||||
|
||||
function updateNationality(ele){
|
||||
var obj = ele.parents('.nationality_select').data('toggle');
|
||||
if(ele.val()){
|
||||
$(obj).show('slow');
|
||||
if(!toggle_first){
|
||||
$(obj).find('.accordion-toggle').click();
|
||||
toggle_first = true;
|
||||
}
|
||||
}else{
|
||||
$(obj).hide();
|
||||
}
|
||||
}
|
||||
|
||||
$('.nationality_select').find('select').change(function(){
|
||||
updateNationality($(this));
|
||||
});
|
||||
|
||||
|
||||
function updateAllNationality(){
|
||||
$('.nationality_select').find('select').each(function(){
|
||||
updateNationality($(this));
|
||||
});
|
||||
}
|
||||
updateAllNationality();
|
||||
|
||||
|
||||
function toggleUpdateChevron(e) {
|
||||
var $i = $(e.target)
|
||||
.parent('.panel-group')
|
||||
.find("i.indicator");
|
||||
|
||||
$i.toggleClass('icon-minus icon-plus');
|
||||
}
|
||||
$('.acc_nationality_panel').on('hidden.bs.collapse', toggleUpdateChevron);
|
||||
$('.acc_nationality_panel').on('shown.bs.collapse', toggleUpdateChevron);
|
||||
|
||||
|
||||
function updateTravelers()
|
||||
{
|
||||
var travelersIndex = 1;
|
||||
|
|
@ -46,7 +106,7 @@ $(document).ready(function() {
|
|||
|
||||
travelers$.hide();
|
||||
travelerFields$.prop('required', false);
|
||||
|
||||
var counter = 1;
|
||||
if(singleTravelerCount > 0)
|
||||
{
|
||||
for(var i = 1; i <= singleTravelerCount; i++)
|
||||
|
|
@ -56,7 +116,8 @@ $(document).ready(function() {
|
|||
var currentRoomIndex = $(travelerSelector).attr("data-room-index");
|
||||
$(travelerSelector).show().find('input,select').prop('required', true);
|
||||
//$(roomIndexSelector).text(currentRoomIndex);
|
||||
$(roomIndexSelector).text("Einzelzimmer");
|
||||
$(roomIndexSelector).text(counter + ".) Reiseteilnehmer | Einzelzimmer");
|
||||
counter ++;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -70,7 +131,8 @@ $(document).ready(function() {
|
|||
var currentRoomIndex = $(travelerSelector).attr("data-room-index");
|
||||
$(travelerSelector).show().find('input,select').prop('required', true);
|
||||
//$(roomIndexSelector).text(currentRoomIndex - offset);
|
||||
$(roomIndexSelector).text("Doppelzimmer");
|
||||
$(roomIndexSelector).text(counter + ".) Reiseteilnehmer | Doppelzimmer");
|
||||
counter ++;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -84,7 +146,8 @@ $(document).ready(function() {
|
|||
var currentRoomIndex = $(travelerSelector).attr("data-room-index");
|
||||
$(travelerSelector).show().find('input,select').prop('required', true);
|
||||
//$(roomIndexSelector).text(currentRoomIndex - offset);
|
||||
$(roomIndexSelector).text("Dreibettzimmer");
|
||||
$(roomIndexSelector).text(counter + ".) Reiseteilnehmer | Dreibettzimmer");
|
||||
counter ++;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -399,7 +399,46 @@ jQuery(document).ready(function($) {
|
|||
$('#accordion').on('hidden.bs.collapse', toggleChevron);
|
||||
$('#accordion').on('shown.bs.collapse', toggleChevron);
|
||||
|
||||
|
||||
function toggleChevron2(e) {
|
||||
console.log(e.target);
|
||||
var $i = $(e.target)
|
||||
.parent('.panel-group')
|
||||
.find("i.indicator");
|
||||
|
||||
$i.toggleClass('icon-minus icon-plus');
|
||||
|
||||
if($i.hasClass('icon-minus')){
|
||||
$i.parent('h3').find('span').html('Reiseablauf mit Reisetagen ausblenden');
|
||||
}
|
||||
if($i.hasClass('icon-plus')){
|
||||
$i.parent('h3').find('span').html('Reiseablauf mit Reisetagen einblenden');
|
||||
}
|
||||
}
|
||||
$('#accordion_pd').on('hidden.bs.collapse', toggleChevron2);
|
||||
$('#accordion_pd').on('shown.bs.collapse', toggleChevron2);
|
||||
|
||||
function toggleChevron3(e) {
|
||||
console.log(e.target);
|
||||
var $i = $(e.target)
|
||||
.parent('.panel-group')
|
||||
.find("i.indicator");
|
||||
|
||||
$i.toggleClass('icon-minus icon-plus');
|
||||
|
||||
if($i.hasClass('icon-minus')){
|
||||
$i.parent('h3').find('span').html('Flugdaten ausblenden');
|
||||
}
|
||||
if($i.hasClass('icon-plus')){
|
||||
$i.parent('h3').find('span').html('Flugdaten einblenden');
|
||||
}
|
||||
}
|
||||
$('#accordion_fd').on('hidden.bs.collapse', toggleChevron3);
|
||||
$('#accordion_fd').on('shown.bs.collapse', toggleChevron3);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* ==============================================
|
||||
LIGHTBOX -->
|
||||
=============================================== */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue