Skip to content

Commit

Permalink
Selectize Bootstrap 5 theme
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisi authored and chrisi committed Apr 2, 2023
1 parent f1ed46f commit 657aec6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
5 changes: 3 additions & 2 deletions includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,20 @@
<script src="https://code.jquery.com/ui/1.13.2/jquery-ui.js"></script>
<link rel="stylesheet" type="text/css" href="https://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css" />
<!-- Selectize -->
<link
<!-- <link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/selectize.js/0.15.2/css/selectize.default.min.css"
integrity="sha512-pTaEn+6gF1IeWv3W1+7X7eM60TFu/agjgoHmYhAfLEU8Phuf6JKiiE8YmsNC0aCgQv4192s4Vai8YZ6VNM6vyQ=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
/> -->
<script
src="https://cdnjs.cloudflare.com/ajax/libs/selectize.js/0.15.2/js/selectize.min.js"
integrity="sha512-IOebNkvA/HZjMM7MxL0NYeLYEalloZ8ckak+NDtOViP7oiYzG5vn6WVXyrJDiJPhl4yRdmNAG49iuLmhkUdVsQ=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/selectize.js/0.15.2/css/selectize.bootstrap5.min.css" integrity="sha512-Ars0BmSwpsUJnWMw+KoUKGKunT7+T8NGK0ORRKj+HT8naZzLSIQoOSIIM3oyaJljgLxFi0xImI5oZkAWEFARSA==" crossorigin="anonymous" referrerpolicy="no-referrer" />


<!-- Custom Bootstrap Theme-->
Expand Down
9 changes: 4 additions & 5 deletions pages/inventory.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

<!-- Part Entry Modal -->
<div class="modal fade" id="mPartEntry" tabindex="-1">
<?php include '../includes/partEntryModal.php';?>
<?php include '../includes/partEntryModal.php'; ?>
</div>

<!-- Page Contents -->
Expand All @@ -55,8 +55,7 @@
</div>
<div class="col-1">
<button type="submit" class="btn btn-primary" name="apply">Search</button><br><br>
<button type="button" class="btn btn-outline-primary"
onclick='callPartEntryModal();'>Enter New</button>
<button type="button" class="btn btn-outline-primary" onclick='callPartEntryModal();'>Enter New</button>
</div>
<div class="col-1">
<?php echo "Results per page:"; ?>
Expand Down Expand Up @@ -127,7 +126,8 @@

// 'Selectize' the category multi select, prepare values and append to the hidden input field
$(function () {
var $select = $('#cat-select').selectize({plugins: ["remove_button", "clear_button"]});
var $select = $('#cat-select').selectize({
plugins: ["remove_button", "clear_button"]});

$('form').on('submit', function () {
// Get the selected options from the Selectize instance
Expand All @@ -147,7 +147,6 @@
// Get part_id from the clicked row and update parts-info and stock modals
$(document).ready(function () {
$('#parts_table tbody').on('click', 'tr', function () {
console.log("Row clicked");
if ($('tbody tr.selected').length > 0) {
$('tbody tr.selected').removeClass('selected');
}
Expand Down

0 comments on commit 657aec6

Please sign in to comment.