Merge pull request #946 from jlegewie/patch-1

Bug fix progressWindow.js: nArcs undefined
This commit is contained in:
Dan Stillman 2016-04-12 15:50:21 -04:00
commit 91dcc272e4

View File

@ -332,6 +332,7 @@ Zotero.ProgressWindow = function(_window = null) {
this.ItemProgress.prototype.setProgress = _deferUntilWindowLoad(function(percent) {
if(percent != 0 && percent != 100) {
// Indication of partial progress, so we will use the circular indicator
var nArcs = 20;
this._image.style.backgroundImage = "url('chrome://zotero/skin/progress_arcs.png')";
this._image.style.backgroundPosition = "-"+(Math.round(percent/100*nArcs)*16)+"px 0";
this._hbox.style.opacity = percent/200+.5;