Fixed a bug where a newly created album does not show in the albums pane because of the old cache copy

This commit is contained in:
Roman 2014-09-15 23:17:05 +03:00
parent 5948bf4f93
commit 1671517f41
2 changed files with 8 additions and 2 deletions

View File

@ -113,7 +113,10 @@ album = {
if (data===true) data = 1; // Avoid first album to be true
if (data!==false&&isNumber(data)) lychee.goto(data);
if (data!==false&&isNumber(data)) {
albums.refresh();
lychee.goto(data);
}
else lychee.error(null, params, data);
});

View File

@ -256,7 +256,10 @@ album = {
if (data===true) data = 1; // Avoid first album to be true
if (data!==false&&isNumber(data)) lychee.goto(data);
if (data!==false&&isNumber(data)) {
albums.refresh();
lychee.goto(data);
}
else lychee.error(null, params, data);
});