mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-26 06:04:08 -08:00
Merge pull request #15046 from snipe/localize_bootstrap_table
Added localization for bootstrap-tables
This commit is contained in:
commit
cf92dde1ca
BIN
public/js/dist/bootstrap-table-locale-all.min.js
vendored
Normal file
BIN
public/js/dist/bootstrap-table-locale-all.min.js
vendored
Normal file
Binary file not shown.
|
@ -29,6 +29,7 @@
|
|||
"/css/webfonts/fa-solid-900.woff2": "/css/webfonts/fa-solid-900.woff2?id=96d16b1bdb177fd796c810b9e706c780",
|
||||
"/css/webfonts/fa-v4compatibility.ttf": "/css/webfonts/fa-v4compatibility.ttf?id=8994b282f9f3b7a00380bb1e2731a4bf",
|
||||
"/css/webfonts/fa-v4compatibility.woff2": "/css/webfonts/fa-v4compatibility.woff2?id=111e341dba724e1df946e8d1f406a7bd",
|
||||
"/js/dist/bootstrap-table-locale-all.min.js": "/js/dist/bootstrap-table-locale-all.min.js?id=7373e7d7017cceca6c32928080cea0fb",
|
||||
"/css/dist/bootstrap-table.css": "/css/dist/bootstrap-table.css?id=5f79123a6750afd34dbf565faec3dda3",
|
||||
"/js/build/vendor.js": "/js/build/vendor.js?id=e27070bdbc5fce3bfd132b952d641fd6",
|
||||
"/js/dist/bootstrap-table.js": "/js/dist/bootstrap-table.js?id=e5918703a22f8992c4c98f1dbbecb8f7",
|
||||
|
|
|
@ -5,11 +5,11 @@
|
|||
@push('js')
|
||||
|
||||
<script src="{{ url(mix('js/dist/bootstrap-table.js')) }}"></script>
|
||||
<script src="{{ url(mix('js/dist/bootstrap-table-locale-all.min.js')) }}"></script>
|
||||
|
||||
<script nonce="{{ csrf_token() }}">
|
||||
$(function () {
|
||||
|
||||
var locale = '{{ app()->getLocale() }}';
|
||||
var blockedFields = "searchable,sortable,switchable,title,visible,formatter,class".split(",");
|
||||
|
||||
var keyBlocked = function(key) {
|
||||
|
@ -87,6 +87,7 @@
|
|||
export: 'fa-download',
|
||||
clearSearch: 'fa-times'
|
||||
},
|
||||
locale: '{{ app()->getLocale() }}',
|
||||
exportOptions: export_options,
|
||||
exportTypes: ['xlsx', 'excel', 'csv', 'pdf','json', 'xml', 'txt', 'sql', 'doc' ],
|
||||
onLoadSuccess: function () {
|
||||
|
|
|
@ -45,6 +45,12 @@ mix
|
|||
mix
|
||||
.copy("./node_modules/@fortawesome/fontawesome-free/webfonts", "./public/css/webfonts")
|
||||
|
||||
/**
|
||||
* Copy BS tables js file
|
||||
*/
|
||||
mix
|
||||
.copy( './node_modules/bootstrap-table/dist/bootstrap-table-locale-all.min.js', 'public/js/dist' )
|
||||
|
||||
// Combine main SnipeIT JS files
|
||||
mix
|
||||
.js(
|
||||
|
|
Loading…
Reference in a new issue