Changeset 3176193
- Timestamp:
- 10/26/2024 09:03:14 PM (17 months ago)
- Location:
- easy-appointments/trunk
- Files:
-
- 7 edited
-
js/admin.prod.js (modified) (1 diff)
-
js/frontend-bootstrap.js (modified) (3 diffs)
-
main.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
src/fields/tablecolumns.php (modified) (1 diff)
-
src/frontend.php (modified) (2 diffs)
-
src/templates/admin.tpl.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
easy-appointments/trunk/js/admin.prod.js
r3148231 r3176193 494 494 495 495 var $btn = jQuery(e.currentTarget); 496 497 var id = $btn.data('id'); 498 496 499 var $li = $btn.closest('li'); 497 500 var name = _.unescape('' + $li.data('name')); 498 var element = this.fields.findWhere({label:name});501 var element = !!id ? this.fields.findWhere({id: id}) : this.fields.findWhere({ label:name }); 499 502 500 503 this.fields.remove(element); -
easy-appointments/trunk/js/frontend-bootstrap.js
r3059359 r3176193 444 444 next_element.append('<option value="">-</option>'); 445 445 446 var option_count = 0; 447 446 448 // options 447 449 jQuery.each(response, function (index, element) { … … 469 471 470 472 next_element.append($option); 473 474 option_count++; 471 475 }); 472 476 … … 477 481 478 482 plugin.scrollToElement(next_element.parent()); 483 484 // if there is only one option auto select it 485 if (ea_settings['auto_select_option'] === '1' && option_count === 1) { 486 next_element 487 .children() 488 .last() 489 .prop('selected', true) 490 .trigger('change'); 491 } 479 492 }, 'json'); 480 493 -
easy-appointments/trunk/main.php
r3172490 r3176193 5 5 * Plugin URI: https://easy-appointments.com/ 6 6 * Description: Simple and easy to use management system for Appointments and Bookings 7 * Version: 3.12. 37 * Version: 3.12.4 8 8 * Requires PHP: 5.3 9 9 * Author: Nikola Loncar … … 22 22 * Currently plugin version. 23 23 */ 24 define( 'EASY_APPOINTMENTS_VERSION', '3.12. 3' );24 define( 'EASY_APPOINTMENTS_VERSION', '3.12.4' ); 25 25 26 26 // path for source files -
easy-appointments/trunk/readme.txt
r3172490 r3176193 6 6 Tested up to: 6.6 7 7 Requires PHP: 5.3 8 Stable tag: 3.12. 38 Stable tag: 3.12.4 9 9 License: GPLv2 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 214 214 == Changelog == 215 215 216 = 3.12.4 (2024-10-26) 217 * Fixed issue with custom form fields that in some cases could not be deleted 218 * Added new option for auto selection location/service/worker if there is only one option available (shortcode param `auto_select_option="1"`) 219 216 220 = 3.12.3 (2024-10-20) 217 221 * Fixed bug with Vacation page not loading (due to plan permalinks settings) -
easy-appointments/trunk/src/fields/tablecolumns.php
r3007458 r3176193 141 141 'cal_auto_select', 142 142 'auto_select_slot', 143 'auto_select_option', 143 144 'cancel.scroll', 144 145 'captcha.site-key', -
easy-appointments/trunk/src/frontend.php
r3100056 r3176193 485 485 'block_days' => null, 486 486 'block_days_tooltip' => '', 487 'select_placeholder' => '-' 487 'select_placeholder' => '-', 488 'auto_select_option' => '0' 488 489 ), $atts); 489 490 … … 526 527 $settings['cal_auto_select'] = $code_params['cal_auto_select']; 527 528 $settings['auto_select_slot'] = $code_params['auto_select_slot']; 529 $settings['auto_select_option'] = $code_params['auto_select_option']; 528 530 $settings['block_days'] = $code_params['block_days'] !== null ? explode(',', $code_params['block_days']) : null; 529 531 $settings['block_days_tooltip'] = $code_params['block_days_tooltip']; -
easy-appointments/trunk/src/templates/admin.tpl.php
r3148231 r3176193 915 915 </select> 916 916 </p> 917 <p><a href="#" class="deletion item-delete" >Delete</a> | <a href="#" class="item-save">Apply</a></p>917 <p><a href="#" class="deletion item-delete" data-id="<%=item.id%>">Delete</a> | <a href="#" class="item-save">Apply</a></p> 918 918 </div> 919 919 </script>
Note: See TracChangeset
for help on using the changeset viewer.