Fixed frontend crashing when database is empty

This commit is contained in:
Marcin Kurczewski
2014-10-10 18:13:46 +02:00
parent d2695e635c
commit 0811968718
23 changed files with 102 additions and 40 deletions

View File

@ -25,6 +25,9 @@ App.Presenters.UserBrowsingSettingsPresenter = function(
templates.browsingSettings = template;
render();
loaded();
}).fail(function() {
console.log(arguments);
loaded();
});
}
@ -53,6 +56,8 @@ App.Presenters.UserBrowsingSettingsPresenter = function(
promise.wait(browsingSettings.setSettings(newSettings))
.then(function() {
messagePresenter.showInfo($messages, 'Browsing settings updated!');
}).fail(function() {
console.log(arguments);
});
}