mirror of
https://github.com/rystaf/mlmym.git
synced 2024-11-22 05:36:16 +00:00
fix settings save
This commit is contained in:
parent
dd58cb7e55
commit
669749c12e
|
@ -296,8 +296,7 @@ function saveSettings(e) {
|
||||||
var targ = e.currentTarget || e.srcElement || e;
|
var targ = e.currentTarget || e.srcElement || e;
|
||||||
var data = new FormData(targ)
|
var data = new FormData(targ)
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
var params = new URLSearchParams(data).toString()
|
request(targ.target, data, function(res) {
|
||||||
request(targ.target, params, function(res) {
|
|
||||||
["endlessScrolling", "autoLoad"].map(function(x) {
|
["endlessScrolling", "autoLoad"].map(function(x) {
|
||||||
localStorage.setItem(x, data.get(x)=="on")
|
localStorage.setItem(x, data.get(x)=="on")
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue