mirror of
https://github.com/snipe/snipe-it.git
synced 2024-09-19 23:37:38 -07:00
Removed iCheck from snipeit.js and webpack
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
5078b51d4d
commit
868615d5e7
|
@ -185,14 +185,6 @@ $(document).ready(function () {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
/*
|
|
||||||
* iCheck checkbox plugin
|
|
||||||
*/
|
|
||||||
|
|
||||||
$('input[type="checkbox"].minimal, input[type="radio"].minimal').iCheck({
|
|
||||||
checkboxClass: 'icheckbox_minimal-blue',
|
|
||||||
radioClass: 'iradio_minimal-blue'
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -611,22 +603,10 @@ function htmlEntities(str) {
|
||||||
*
|
*
|
||||||
* How to use:
|
* How to use:
|
||||||
*
|
*
|
||||||
* 1. Set the class of your select2 elements to 'livewire-select2' and your icheck elements to 'livewire-icheck' (as appropriate).
|
* 1. Set the class of your select2 elements to 'livewire-select2').
|
||||||
* (For iCheck, you may still need to apply the other iCheck classes like 'minimal' or 'iCheck')
|
|
||||||
* 2. Name your element to match a property in your Livewire component
|
* 2. Name your element to match a property in your Livewire component
|
||||||
* 3. Add an attribute called 'data-livewire-component' that points to $_instance->id (via `{{ }}` if you're in a blade,
|
* 3. Add an attribute called 'data-livewire-component' that points to $_instance->id (via `{{ }}` if you're in a blade,
|
||||||
* or just $_instance->id if not).
|
* or just $_instance->id if not).
|
||||||
* 4. For iCheck, you need to wrap the 'checkbox' element with wire:ignore - perhaps in the <label> if it wraps the
|
|
||||||
* <input> element, or just put a <span wire:ignore></span> around just the input element.
|
|
||||||
* 5. If you have dynamically shown/hidden checkboxes, you might need to initialize iCheck on them on component page-load.
|
|
||||||
* Just use $('.livewire-icheck').iCheck(), or for the minimal-style, use:
|
|
||||||
*
|
|
||||||
* $('input[type="checkbox"].minimal.livewire-icheck, input[type="radio"].minimal.livewire-icheck').iCheck({
|
|
||||||
* checkboxClass: 'icheckbox_minimal-blue',
|
|
||||||
* radioClass: 'iradio_minimal-blue'
|
|
||||||
* });
|
|
||||||
*
|
|
||||||
* (which is stolen from above here in this JS file)
|
|
||||||
*/
|
*/
|
||||||
$(function () {
|
$(function () {
|
||||||
$('.livewire-select2').select2()
|
$('.livewire-select2').select2()
|
||||||
|
|
|
@ -18,8 +18,6 @@ mix
|
||||||
"./node_modules/@fortawesome/fontawesome-free/css/all.css",
|
"./node_modules/@fortawesome/fontawesome-free/css/all.css",
|
||||||
"./public/css/build/AdminLTE.css",
|
"./public/css/build/AdminLTE.css",
|
||||||
"./node_modules/jquery-ui-bundle/jquery-ui.css",
|
"./node_modules/jquery-ui-bundle/jquery-ui.css",
|
||||||
"./node_modules/admin-lte/plugins/iCheck/minimal/blue.css",
|
|
||||||
"./node_modules/icheck/skins/minimal/minimal.css",
|
|
||||||
"./node_modules/bootstrap-datepicker/dist/css/bootstrap-datepicker.standalone.css",
|
"./node_modules/bootstrap-datepicker/dist/css/bootstrap-datepicker.standalone.css",
|
||||||
"./node_modules/bootstrap-colorpicker/dist/css/bootstrap-colorpicker.css",
|
"./node_modules/bootstrap-colorpicker/dist/css/bootstrap-colorpicker.css",
|
||||||
"./node_modules/blueimp-file-upload/css/jquery.fileupload.css",
|
"./node_modules/blueimp-file-upload/css/jquery.fileupload.css",
|
||||||
|
@ -34,13 +32,6 @@ mix
|
||||||
)
|
)
|
||||||
.version();
|
.version();
|
||||||
|
|
||||||
mix.copy(
|
|
||||||
[
|
|
||||||
"./node_modules/icheck/skins/minimal/blue.png",
|
|
||||||
"./node_modules/icheck/skins/minimal/blue@2x.png",
|
|
||||||
],
|
|
||||||
"./public/css"
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Copy, minify and version signature-pad.css
|
* Copy, minify and version signature-pad.css
|
||||||
|
|
Loading…
Reference in a new issue