mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
(WIP) Added spinner (#39)
This commit is contained in:
@ -13,12 +13,14 @@ App.Presenters.TopNavigationPresenter = function(
|
||||
var template;
|
||||
var baseTitle = document.title;
|
||||
|
||||
function init() {
|
||||
promise.wait(util.promiseTemplate('top-navigation')).then(function(html) {
|
||||
template = _.template(html);
|
||||
render();
|
||||
auth.startObservingLoginChanges('top-navigation', loginStateChanged);
|
||||
});
|
||||
function init(args, loaded) {
|
||||
promise.wait(util.promiseTemplate('top-navigation'))
|
||||
.then(function(html) {
|
||||
template = _.template(html);
|
||||
render();
|
||||
loaded();
|
||||
auth.startObservingLoginChanges('top-navigation', loginStateChanged);
|
||||
});
|
||||
}
|
||||
|
||||
function select(newSelectedElement) {
|
||||
|
Reference in New Issue
Block a user