this.hashChanged_, false, this);
this.clearError(false);
+ /**
+ * If this is the first load, we don't want to flash the error animating
+ * out. This will be set to true in the list callback.
+ * @type {bool}
+ */
+ this.initialized_ = false;
var version = goog.string.format('Armadillo %d.%d (%d)',
armadillo.Version.MAJOR, armadillo.Version.MINOR,
app.showError(data['message']);
return; // Error.
} else {
- app.clearError();
+ app.clearError(app.initialized_);
}
// Update the listing.
var fileObject = new armadillo.File(file, path);
goog.dom.appendChild(list, fileObject.draw());
});
+
+ app.initialized_ = true;
}
this.sendRequest('list', {'path':path}, callback);
};
anim.play();
else
anim.hide();
- goog.dom.setTextContent(elm, '');
+ goog.events.listenOnce(anim, goog.fx.Animation.EventType.END, function() {
+ goog.dom.setTextContent(elm, '');
+ });
};
/**