Update navigation.js

favorite tables localStorage sync: avoid sending undefined objects or empty strings via ajax #2
This commit is contained in:
monojp 2015-03-18 16:44:41 +01:00
parent e94d2a9a7f
commit 94698de080

View File

@ -487,7 +487,7 @@ $(function () {
cache: false,
type: 'POST',
data: {
favorite_tables: (isStorageSupported('localStorage'))
favorite_tables: (isStorageSupported('localStorage') && typeof window.localStorage.favorite_tables != 'undefined')
? window.localStorage.favorite_tables
: ''
},