diff options
author | 2013-09-29 13:03:17 +0200 | |
---|---|---|
committer | 2013-09-29 13:03:17 +0200 | |
commit | 6a997661dc5c259f844531382a90a4ca120f1233 (patch) | |
tree | 085a76d4bac208963649a62f9393e0c0b049e869 /pyload/web/app/scripts/setup.js | |
parent | rewritten decrypter and info fetching thread (diff) | |
download | pyload-6a997661dc5c259f844531382a90a4ca120f1233.tar.xz |
basics for web setup
Diffstat (limited to 'pyload/web/app/scripts/setup.js')
-rw-r--r-- | pyload/web/app/scripts/setup.js | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/pyload/web/app/scripts/setup.js b/pyload/web/app/scripts/setup.js new file mode 100644 index 000000000..94d370078 --- /dev/null +++ b/pyload/web/app/scripts/setup.js @@ -0,0 +1,33 @@ +/** + * Router and controller used in setup mode + */ +define([ + // Libraries + 'backbone', + 'marionette', + 'app', + + // Views + 'views/setup/setupView' +], + function(Backbone, Marionette, App, SetupView) { + 'use strict'; + + return Backbone.Marionette.AppRouter.extend({ + + appRoutes: { + '': 'setup' + }, + + controller: { + + setup: function() { + + var view = new SetupView(); + App.actionbar.show(new view.actionbar()); + App.content.show(view); + } + + } + }); + }); |