Skip to content

A free open source IT asset/license management system

removes if statement that prevents select2-ifying inputs

Godfrey Mca59bc3c9ced
diff --git a/resources/assets/js/snipeit.js b/resources/assets/js/snipeit.js
index a834e22ba0..c824816583 100755
--- a/resources/assets/js/snipeit.js
+++ b/resources/assets/js/snipeit.js
@@ -191,9 +191,7 @@ $(document).ready(function () {
* Select2
*/
- var iOS = /iPhone|iPad|iPod/.test(navigator.userAgent) && !window.MSStream;
- if(!iOS)
- {
+
// Vue collision: Avoid overriding a vue select2 instance
// by checking to see if the item has already been select2'd.
$('select.select2:not(".select2-hidden-accessible")').each(function (i,obj) {
@@ -201,7 +199,7 @@ $(document).ready(function () {
$(obj).select2();
}
});
- }
+
// $('.datepicker').datepicker();
// var datepicker = $.fn.datepicker.noConflict(); // return $.fn.datepicker to previously assigned value
diff --git a/resources/views/users/confirm-bulk-delete.blade.php b/resources/views/users/confirm-bulk-delete.blade.php
index bd6103ea9a..cb80393e13 100644
--- a/resources/views/users/confirm-bulk-delete.blade.php
+++ b/resources/views/users/confirm-bulk-delete.blade.php
@@ -132,7 +132,6 @@
$(":submit").attr("disabled", "disabled");
//The line below needs to be here because in mobile view the status_id select2 forgets its select2 so this makes it function properly.
- $("[name='status_id']").select2();
$("[name='status_id']").on('select2:select', function (e) {
if (e.params.data.id != "") {
console.log(e.params.data.id);