Merge pull request #778 from popod/fix-service-details-display-in-booking-page

Fix display of service details when the service change in the booking process
This commit is contained in:
Alex Tselegidis 2020-08-15 16:07:02 +03:00 committed by GitHub
commit 6348b1af56
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -156,7 +156,7 @@
<select id="select-provider" class="col-xs-12 col-sm-4 form-control"></select> <select id="select-provider" class="col-xs-12 col-sm-4 form-control"></select>
</div> </div>
<div id="service-description" style="display:none;"></div> <div id="service-description"></div>
</div> </div>
</div> </div>

View file

@ -737,7 +737,9 @@ window.FrontendBook = window.FrontendBook || {};
'text': service.description 'text': service.description
}) })
.appendTo($serviceDescription); .appendTo($serviceDescription);
}
if (service.duration || Number(service.price) > 0 || service.location) {
$('<br/>') $('<br/>')
.appendTo($serviceDescription); .appendTo($serviceDescription);
} }