Only mark tag cache as fully loaded if it is
This commit is contained in:
parent
351a820d34
commit
4e4f6f74a1
1 changed files with 5 additions and 7 deletions
|
@ -423,16 +423,14 @@ Zotero.Tags = new function() {
|
||||||
|
|
||||||
|
|
||||||
this._load = function () {
|
this._load = function () {
|
||||||
if (!arguments[0] && !this._reloadCache) {
|
if (!arguments[0]) {
|
||||||
return;
|
if (!this._reloadCache) {
|
||||||
}
|
return;
|
||||||
|
}
|
||||||
if (this._reloadCache) {
|
|
||||||
_tags = {};
|
_tags = {};
|
||||||
|
this._reloadCache = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
this._reloadCache = false;
|
|
||||||
|
|
||||||
// This should be the same as the query in Zotero.Tag.load(),
|
// This should be the same as the query in Zotero.Tag.load(),
|
||||||
// just without a specific tagID
|
// just without a specific tagID
|
||||||
var sql = "SELECT * FROM tags WHERE 1";
|
var sql = "SELECT * FROM tags WHERE 1";
|
||||||
|
|
Loading…
Add table
Reference in a new issue