removed useless and debug stuff

This commit is contained in:
Gilles Grandou 2019-05-01 18:38:17 +02:00
parent f88f84bc57
commit 950966abe3

View File

@ -10,7 +10,6 @@ require(['dojo/_base/kernel', 'dojo/ready'], function (dojo, ready) {
const view_mode = dijit.getEnclosingWidget(toolbar.view_mode); const view_mode = dijit.getEnclosingWidget(toolbar.view_mode);
prev_prefs = { prev_prefs = {
id:this.prev_feed,
order_by: order_by.attr("value"), order_by: order_by.attr("value"),
view_mode: view_mode.attr("value"), view_mode: view_mode.attr("value"),
}; };
@ -24,12 +23,7 @@ require(['dojo/_base/kernel', 'dojo/ready'], function (dojo, ready) {
console.log console.log
if (data) { if (data) {
prefs = JSON.parse(data); prefs = JSON.parse(data);
console.log("plugin:feedprefs: "+key+" => "+data); //console.log("plugin:feedprefs: "+key+" => "+data);
if (prefs.id != feed[0]) {
console.log("plugin:feedprefs: bad data - discard entry");
localStorage.removeItem(key);
return;
}
if (prefs.order_by) if (prefs.order_by)
order_by.attr("value", prefs.order_by); order_by.attr("value", prefs.order_by);
if (prefs.view_mode) if (prefs.view_mode)