snipe-it/resources/views/partials/forms/edit
Till Deeke 07a92d20d7 Fixing #5773: Refactoring the "clearing" of select2 lists (#5839)
* adds select2 placeholders to select lists

To allow us to clear the selection on „select2“ selects, we need a placeholder attribute

See: https://select2.org/placeholders

* Removes empty option from multiple select

select2 requires an empty option value on singular selects, but not on multiple selects.

When selecting multiple options, this empty option would be shown as selectable otherwise, not clearing the selection.

* Adds the option to clear select2 instances

Sets the correct options to allow clearing of out select2 instances. The empty placeholder is required, since clearing only works when a placeholder ist set (event an empty one).

See: https://select2.org/placeholders

* Removes the „Clear selection“ option from select lists

Since we can clear the select2 lists with their native clearing method, we can remove this hack

* Updates generated assets (css/js)
2018-07-16 14:10:54 -07:00
..
address.blade.php
asset-select.blade.php Fixing #5773: Refactoring the "clearing" of select2 lists (#5839) 2018-07-16 14:10:54 -07:00
category-select.blade.php Fixing #5773: Refactoring the "clearing" of select2 lists (#5839) 2018-07-16 14:10:54 -07:00
category.blade.php
company-select.blade.php Fixing #5773: Refactoring the "clearing" of select2 lists (#5839) 2018-07-16 14:10:54 -07:00
company.blade.php
department-select.blade.php Fixing #5773: Refactoring the "clearing" of select2 lists (#5839) 2018-07-16 14:10:54 -07:00
depreciation.blade.php
email.blade.php
image-upload.blade.php Added image preview for uploads 2018-02-17 00:51:22 -08:00
item_number.blade.php
location-profile-select.blade.php Fixing #5773: Refactoring the "clearing" of select2 lists (#5839) 2018-07-16 14:10:54 -07:00
location-select.blade.php Fixing #5773: Refactoring the "clearing" of select2 lists (#5839) 2018-07-16 14:10:54 -07:00
location.blade.php
maintenance_type.blade.php
manufacturer-select.blade.php Fixing #5773: Refactoring the "clearing" of select2 lists (#5839) 2018-07-16 14:10:54 -07:00
manufacturer.blade.php
minimum_quantity.blade.php
model-select.blade.php Fixing #5773: Refactoring the "clearing" of select2 lists (#5839) 2018-07-16 14:10:54 -07:00
model_number.blade.php
name.blade.php
notes.blade.php
order_number.blade.php
phone.blade.php
purchase_cost.blade.php
purchase_date.blade.php
quantity.blade.php
requestable.blade.php
serial.blade.php
status.blade.php Fixes incorrect gate for “new” button for status labels on asset create/edit form 2018-04-26 16:35:08 -07:00
submit.blade.php Fixed #5033 - use PHP’s max filesize for image uploads 2018-02-16 21:17:41 -08:00
supplier-select.blade.php Fixing #5773: Refactoring the "clearing" of select2 lists (#5839) 2018-07-16 14:10:54 -07:00
supplier.blade.php
user-select.blade.php Fixing #5773: Refactoring the "clearing" of select2 lists (#5839) 2018-07-16 14:10:54 -07:00
warranty.blade.php