Fixed some UI issues

Fixed: Add folder won't show loading when there aren't any folders
This commit is contained in:
Mark McDowall committed 2013-10-20 11:01:30 -07:00
1 parent aa26d68f18
commit f14fff676e
3 files changed
+6 -3

No files matched your search

+4 -1
View File
@@ -37,7 +37,10 @@ define(
initialize: function () {
QualityProfileCollection.fetch();
RootFolderCollection.fetch();
RootFolderCollection.fetch()
.done(function () {
RootFolderCollection.synced = true;
});
},
onShow: function () {
+1 -1
View File
@@ -37,7 +37,7 @@ define(
onRender: function () {
this.currentDirs.show(new LoadingView());
if (RootFolderCollection.any()) {
if (RootFolderCollection.synced) {
this._showCurrentDirs();
}
+1 -1
View File
@@ -43,7 +43,7 @@ define(
}
});
CommandCollection.bind('add sync', function () {
CommandCollection.bind('sync', function () {
var command = CommandCollection.findCommand(options.command);
if (command) {
self._bindToCommandModel.call(self, command, options);