linkeditable save bug fix
This commit is contained in:
parent
0fae2dee66
commit
6fb04ede84
@ -72,13 +72,17 @@ export default {
|
|||||||
if ($li.querySelector('input.url').value) {
|
if ($li.querySelector('input.url').value) {
|
||||||
let title = $li.querySelector('input.title').value;
|
let title = $li.querySelector('input.title').value;
|
||||||
let url = $li.querySelector('input.url').value;
|
let url = $li.querySelector('input.url').value;
|
||||||
|
console.log(`title ${title}, url ${url}`);
|
||||||
list.push({
|
list.push({
|
||||||
title: title,
|
title: title,
|
||||||
uri: url
|
uri: url
|
||||||
});
|
});
|
||||||
|
console.log(`title ${title} | this.links[i].title ${this.links[i].title}`);
|
||||||
|
if (!tobesaved) {
|
||||||
tobesaved = (typeof this.links[i] === 'undefined' || title !== this.links[i].title || url !== this.links[i].url);
|
tobesaved = (typeof this.links[i] === 'undefined' || title !== this.links[i].title || url !== this.links[i].url);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (!tobesaved) {
|
if (!tobesaved) {
|
||||||
tobesaved = this.links.length !== list.length;
|
tobesaved = this.links.length !== list.length;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user