Skip to content

Commit 4363e08

Browse files
author
jokob-sk
committed
prevent 401 in ingress #961
1 parent e766b19 commit 4363e08

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

front/devices.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@
120120
<!-- page script ----------------------------------------------------------- -->
121121
<script>
122122
var deviceStatus = 'all';
123-
var tableRows = getCookie ("nax_parTableRows") == "" ? 10 : getCookie ("nax_parTableRows") ;
124-
var tableOrder = getCookie ("nax_parTableOrder") == "" ? [[3,'desc'], [0,'asc']] : JSON.parse(getCookie ("nax_parTableOrder")) ;
123+
var tableRows = getCache ("nax_parTableRows") == "" ? 10 : getCache ("nax_parTableRows") ;
124+
var tableOrder = getCache ("nax_parTableOrder") == "" ? [[3,'desc'], [0,'asc']] : JSON.parse(getCache ("nax_parTableOrder")) ;
125125

126126
var tableColumnHide = [];
127127
var tableColumnOrder = [];
@@ -740,11 +740,11 @@ function initializeDatatable (status) {
740740

741741
// Save cookie Rows displayed, and Parameters rows & order
742742
$('#tableDevices').on( 'length.dt', function ( e, settings, len ) {
743-
setCookie ("nax_parTableRows", len, 129600); // save for 90 days
743+
setCache ("nax_parTableRows", len, 129600); // save for 90 days
744744
} );
745745

746746
$('#tableDevices').on( 'order.dt', function () {
747-
setCookie ("nax_parTableOrder", JSON.stringify (table.order()), 129600); // save for 90 days
747+
setCache ("nax_parTableOrder", JSON.stringify (table.order()), 129600); // save for 90 days
748748
} );
749749

750750
// add multi-edit button

server/plugin.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ def execute_plugin(db, all_plugins, plugin, pluginsState = plugins_state() ):
462462
return pluginsState
463463
else:
464464
mylog('verbose', ['[Plugins] SUCCESS, received ', len(sqlParams), ' entries'])
465-
# mylog('debug', ['[Plugins] sqlParam entries: ', sqlParams]) # not working for som reason
465+
mylog('debug', ['[Plugins] sqlParam entries: ', sqlParams])
466466

467467
# process results if any
468468
if len(sqlParams) > 0:

0 commit comments

Comments
 (0)