|
Lines 1158-1166
Link Here
|
| 1158 |
var hold_id = $(this).data('hold_id'); |
1158 |
var hold_id = $(this).data('hold_id'); |
| 1159 |
|
1159 |
|
| 1160 |
this_dropdown.select2({ |
1160 |
this_dropdown.select2({ |
|
|
1161 |
allowClear: false, |
| 1161 |
ajax: { |
1162 |
ajax: { |
| 1162 |
url: '/api/v1/holds/' + encodeURIComponent(hold_id) + '/pickup_locations', |
1163 |
url: '/api/v1/holds/' + encodeURIComponent(hold_id) + '/pickup_locations', |
| 1163 |
allowClear: false, |
|
|
| 1164 |
delay: 300, // wait 300 milliseconds before triggering the request |
1164 |
delay: 300, // wait 300 milliseconds before triggering the request |
| 1165 |
dataType: 'json', |
1165 |
dataType: 'json', |
| 1166 |
data: function (params) { |
1166 |
data: function (params) { |
| 1167 |
- |
|
|