jquery-select2

Prestashop 1.7.6.2 ajax call backoffice module

女生的网名这么多〃 提交于 2021-01-29 05:22:00
问题 I have problem with ajax from select2 in prestashop 1.7. When I try writte something the calling is 200 but I got error "The Controller Psb2BAjaxModuleAdmin is missing or invalid." I create Controller for test in my module modules/psb2b/src/Controller/Psb2BAjaxModuleAdminController.php <?php namespace Scenario\PSB2B\Controller; use Symfony\Component\HttpFoundation\JsonResponse; use PrestaShopBundle\Controller\Admin\FrameworkBundleAdminController; class Psb2BAjaxModuleAdminController extends

Knockout/Select2 Dropdownlist contains correct options, but now displays nothing as selected

房东的猫 提交于 2021-01-28 09:42:07
问题 So I have two dropdown lists that I'm using with knockout and select. When the availablePeople list returns all false (doesn't work properly), I am able to select and retain the person I chose. However, when the available people list works properly, I am not able to see the dropdown selection that I chose. To elaborate on the availablePeople List, if you select a person, that person can no longer be selected in future rows. HTML <div> <table id="tblPossessionChanges"> <thead> <tr> <th><a href

Does jquery select2 plugin support the ability to have alternative row colors in the dropdown list?

荒凉一梦 提交于 2021-01-28 01:00:22
问题 I have a dropdown list and I am using the Select2 jquery plugon which works great. One thing i ran into is a use case where each of the items is very long so the text wraps to 3 or 4 lines. I wanted to see if you can style the dropdowns to have alternative row color to make it easier to see where one item ends and another begins when you are scrolling down the list of items. Is this possible? 回答1: Yes, it's possible, in fact it's quite easy, this is how you do it: In your css stylesheet

Click event in select2 tag with a link

Deadly 提交于 2021-01-27 05:04:14
问题 I am using select2 in tag mode. My item text is a link, e.g.: <a href='url'>tag1</a>. select2 seems to be swallowing the click event on the tag (selected choice) so I cannot navigate to the link. Any ideas on how to get the link to work? 回答1: Select2 disables click events by default and for the moment, you must use a workaround to achieve the desired results. Here's an example of how I accomplished this, thanks to the resources below. This won't work if you don't re-instantiate the variable

jquery select2 refresh data

北慕城南 提交于 2021-01-27 04:02:01
问题 I using select2 to select and ajax to load data, how can I replace old data when the state is changed after initial selection. My loading code: $('.datetimepicker').on("changeDate", function() { //refresh selectbox ?? doctor_id = $(".select2-doctors").val(); clinic_id = $(".select2-clinics").val(); date = $('.datetimepicker').datepicker('getFormattedDate'); $.ajax({ url: '/admin/appointments/time_slots', type: 'GET', dataType: 'json', data: {doctor_id: doctor_id, clinic_id: clinic_id, date:

jquery select2 refresh data

假如想象 提交于 2021-01-27 04:00:45
问题 I using select2 to select and ajax to load data, how can I replace old data when the state is changed after initial selection. My loading code: $('.datetimepicker').on("changeDate", function() { //refresh selectbox ?? doctor_id = $(".select2-doctors").val(); clinic_id = $(".select2-clinics").val(); date = $('.datetimepicker').datepicker('getFormattedDate'); $.ajax({ url: '/admin/appointments/time_slots', type: 'GET', dataType: 'json', data: {doctor_id: doctor_id, clinic_id: clinic_id, date:

Select2 not working in Jquery-Steps

女生的网名这么多〃 提交于 2021-01-27 02:13:25
问题 I installed Jquery-steps plugin and select2 plugin. I put select2 box inside the Wizard form (jquery-steps) and it doesn't work. The list values are not exported in . Outside the wizard select2 works fine. 回答1: I just had to set $('.class').select2(); AFTER $('#form').steps(); 来源: https://stackoverflow.com/questions/23038301/select2-not-working-in-jquery-steps

Select2 not working in Jquery-Steps

人走茶凉 提交于 2021-01-27 02:13:16
问题 I installed Jquery-steps plugin and select2 plugin. I put select2 box inside the Wizard form (jquery-steps) and it doesn't work. The list values are not exported in . Outside the wizard select2 works fine. 回答1: I just had to set $('.class').select2(); AFTER $('#form').steps(); 来源: https://stackoverflow.com/questions/23038301/select2-not-working-in-jquery-steps

Select2 not working in Jquery-Steps

拜拜、爱过 提交于 2021-01-27 02:13:10
问题 I installed Jquery-steps plugin and select2 plugin. I put select2 box inside the Wizard form (jquery-steps) and it doesn't work. The list values are not exported in . Outside the wizard select2 works fine. 回答1: I just had to set $('.class').select2(); AFTER $('#form').steps(); 来源: https://stackoverflow.com/questions/23038301/select2-not-working-in-jquery-steps

Select2 not working in Jquery-Steps

筅森魡賤 提交于 2021-01-27 02:10:44
问题 I installed Jquery-steps plugin and select2 plugin. I put select2 box inside the Wizard form (jquery-steps) and it doesn't work. The list values are not exported in . Outside the wizard select2 works fine. 回答1: I just had to set $('.class').select2(); AFTER $('#form').steps(); 来源: https://stackoverflow.com/questions/23038301/select2-not-working-in-jquery-steps