diff --git a/gulpfile.babel.js b/gulpfile.babel.js index 3ce7d0cd..836336e6 100644 --- a/gulpfile.babel.js +++ b/gulpfile.babel.js @@ -57,6 +57,7 @@ var eslint_config = { "moment", "toastr", "bootbox", + "Popper", ], "parserOptions": { "sourceType": "module", diff --git a/js/helpers/dropdown.js b/js/helpers/dropdown.js new file mode 100644 index 00000000..90ff2b16 --- /dev/null +++ b/js/helpers/dropdown.js @@ -0,0 +1,239 @@ +import Popper from "popper.js"; + +/* this is basically a 1 on 1 port of Bootstraps' + DropdownMenu plug-in, but has its Elements detached. + And pobably triggers an event or two less. + + HTML-wise it uses standard bootstrap 4 dropdown syntax, + however the button is out of the +@php +$dt_uniq = uniqid(); +@endphp +
+ @@ -119,106 +148,20 @@ $collapsed_flex = $embedded ? '' : 'd-md-flex'; title="{{ $__t('Edit stock entry') }}"> - +
diff --git a/views/stockjournal.blade.php b/views/stockjournal.blade.php index 41d7c457..7f4f00bb 100644 --- a/views/stockjournal.blade.php +++ b/views/stockjournal.blade.php @@ -4,25 +4,30 @@ @section('activeNav', 'stockjournal') @section('viewJsName', 'stockjournal') +@php +$collapsed_none = $embedded ? '' : 'd-md-none'; +$collapsed_flex = $embedded ? '' : 'd-md-flex'; +@endphp + @section('content')