Add timing to tag selector
This commit is contained in:
parent
db0fa3c33e
commit
1ca2100cf0
1 changed files with 5 additions and 1 deletions
|
@ -212,12 +212,14 @@
|
||||||
<body>
|
<body>
|
||||||
<![CDATA[
|
<![CDATA[
|
||||||
Zotero.spawn(function* () {
|
Zotero.spawn(function* () {
|
||||||
|
Zotero.debug('Refreshing tags selector');
|
||||||
|
var t = new Date;
|
||||||
|
|
||||||
if (!this._initialized) {
|
if (!this._initialized) {
|
||||||
this.init();
|
this.init();
|
||||||
fetch = true;
|
fetch = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
Zotero.debug('Refreshing tags selector');
|
|
||||||
var emptyColored = true;
|
var emptyColored = true;
|
||||||
var emptyRegular = true;
|
var emptyRegular = true;
|
||||||
var tagsToggleBox = this.id('tags-toggle');
|
var tagsToggleBox = this.id('tags-toggle');
|
||||||
|
@ -447,6 +449,8 @@
|
||||||
|
|
||||||
// Clear "Loading tags…" after the first load
|
// Clear "Loading tags…" after the first load
|
||||||
this.id('no-tags-deck').selectedIndex = 1;
|
this.id('no-tags-deck').selectedIndex = 1;
|
||||||
|
|
||||||
|
Zotero.debug("Loaded tag selector in " + (new Date - t) + " ms");
|
||||||
}, this);
|
}, this);
|
||||||
]]>
|
]]>
|
||||||
</body>
|
</body>
|
||||||
|
|
Loading…
Add table
Reference in a new issue