Skip to content
Snippets Groups Projects
Commit 4e52ac38 authored by enured's avatar enured
Browse files

B14506: Changed variable names. refs #14506

parent b94e8035
No related branches found
No related tags found
2 merge requests!504New version 22.12.1,!498B14506: Implemented new default view for tablesorter. Trigger automatic save...
Pipeline #8526 passed
......@@ -164,8 +164,8 @@ var QfqNS = QfqNS || {};
// select view on page load: first priority from url hash, second priority localstorage, third private view named 'Default', fourth is public view 'Clear'
// Default (third priority) + Clear (fourth priority)
var defaultExists = tableViews.some(function (v) {return v.name === 'Default' && !v.public;});
var setValue = defaultExists ? "private:Default" : "public:Clear";
var publicDefaultExists = tableViews.some(function (v) {return v.name === 'Default' && !v.public;});
var setValue = publicDefaultExists ? "public:Default" : "public:Clear";
// local storage (second priority)
var localStorageView = localStorage.getItem('tablesorterView_' + tableId);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment