mirror of
https://github.com/itflow-org/itflow
synced 2026-12-06 11:08:59 +00:00
Replace Tom Select with ITFlow's own select picker: native select stays the source of truth, search, checklists for multi selects, add-your-own for tag fields, phone sheet, and client/agent/contact avatars, tag and category colours, priority dots and asset icons in the options
This commit is contained in:
@@ -44,20 +44,19 @@
|
||||
|
||||
<!-- REQUIRED SCRIPTS -->
|
||||
|
||||
<?php /* Tom Select goes FIRST, ahead of Bootstrap itself. Order is load-bearing:
|
||||
until js/tom_select.js runs, the browser is showing the raw <select>
|
||||
controls it painted while parsing the body, so every byte in front of
|
||||
it is time spent looking at the wrong widget. Nothing here is needed to
|
||||
turn a <select> into a Tom Select, so nothing goes in front of it.
|
||||
includes/header.php preloads both files. See js/tom_select.js.
|
||||
<?php /* The select picker goes FIRST, ahead of Bootstrap itself. Order is
|
||||
load-bearing: until js/itflow_select.js runs, the browser is showing
|
||||
the raw <select> controls it painted while parsing the body, so every
|
||||
byte in front of it is time spent looking at the wrong widget. It
|
||||
needs nothing else on the page, so nothing goes in front of it.
|
||||
includes/header.php preloads it.
|
||||
|
||||
Bootstrap moving down is safe: it has always loaded in the footer, so
|
||||
no markup above this point could ever have used the `bootstrap` global
|
||||
at parse time. Every call site is inside an event handler or waits for
|
||||
DOMContentLoaded - includes/inc_alert_feedback.php says so in its own
|
||||
comment - and all of those still run well after this block. */ ?>
|
||||
<script src="/libs/tom-select/js/tom-select.complete.min.js"></script>
|
||||
<script src="/js/tom_select.js"></script>
|
||||
<script src="/js/itflow_select.js"></script>
|
||||
|
||||
<!-- Bootstrap 5 -->
|
||||
<script src="/libs/bootstrap/js/bootstrap.bundle.min.js"></script>
|
||||
|
||||
Reference in New Issue
Block a user