Commit 417f0297 authored by droces's avatar droces

Added .gitignore, other small tweaks
parent a8ee3776
Email templates
\ No newline at end of file
......@@ -58,5 +58,6 @@ booking_form:
css/booking_edit_form.css: {}
dependencies:
- abookings/moment
- abookings/fullCalendar
# - abookings/abookings
- core/jquery.ui.dialog
\ No newline at end of file
......@@ -322,6 +322,9 @@ function add_booking_data_fetched_listener() {
addon_checkboxes.parents('.form-type-checkbox').hide();
var currency_prefix = 'R';
var currency_suffix = '';
// For all addons the selected bookable has, show them, append cost
addon_checkboxes.each(function(index, checkbox) {
// console.log('checkbox: ', checkbox);
......@@ -337,7 +340,7 @@ function add_booking_data_fetched_listener() {
.parents('.form-type-checkbox').show()
.find('label')
.prepend(addon_data.field_image)
.append(' (' + addon_data.field_amount + ' ' + price_type + ')')
.append(' (' + currency_prefix + addon_data.field_amount + ' ' + price_type + currency_suffix + ')')
.append('<br><small>' + addon_data.field_short_description + '</small>');
return false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment