mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-01-13 21:59:34 +00:00
Anpassungen aus Analyse vornehmen
Name Validierung bei Assembly Angabe in Stücklisten anpassen. permission_layout.html hinsichtlich Synonym-Ausgabe Datenquelle anpassen. Anpassung aus Analyse.
This commit is contained in:
parent
01f3f9d44d
commit
4b722257d8
5 changed files with 22 additions and 11 deletions
|
|
@ -13,11 +13,16 @@
|
|||
* Initializes the datatable dynamically.
|
||||
*/
|
||||
$.fn.initDataTables = function(config, options) {
|
||||
|
||||
//Update default used url, so it reflects the current location (useful on single side apps)
|
||||
//CHANGED jbtronics: Preserve the get parameters (needed so we can pass additional params to query)
|
||||
$.fn.initDataTables.defaults.url = window.location.origin + window.location.pathname + window.location.search;
|
||||
|
||||
$.fn.dataTable.ext.errMode = function(settings, helpPage, message) {
|
||||
if (message.includes('ColReorder')) {
|
||||
console.warn('ColReorder does not fit the number of columns', message);
|
||||
}
|
||||
};
|
||||
|
||||
var root = this,
|
||||
config = $.extend({}, $.fn.initDataTables.defaults, config),
|
||||
state = ''
|
||||
|
|
@ -105,7 +110,6 @@
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
root.html(data.template);
|
||||
dt = $('table', root).DataTable(dtOpts);
|
||||
if (config.state !== 'none') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue