+@push('crud_fields_scripts')
+ <script>
+ jQuery(document).ready(function ($) {
+
+ // When clicking on a locale link in the dropdown menu, it doesn't preserve
+ // the current tab because this is stored in the hash and managed by JS.
+ // To overcome this, we catch the locale links and append the hash to them...
+ $(document).on('click', '.dropdown-menu a[href*="?locale="]', function(event) {
+ event.preventDefault();
+ window.location.href = $(this).attr('href') + document.location.hash;
+ });
+
+ });
+ </script>
+@endpush
+
@include('cubist_back::when')
@include('crud::edit')