summaryrefslogtreecommitdiffstats
path: root/module/web/static
diff options
context:
space:
mode:
Diffstat (limited to 'module/web/static')
-rw-r--r--module/web/static/js/default.js11
-rw-r--r--module/web/static/js/views/settingsView.js25
2 files changed, 34 insertions, 2 deletions
diff --git a/module/web/static/js/default.js b/module/web/static/js/default.js
index 4436a85c1..bb9701935 100644
--- a/module/web/static/js/default.js
+++ b/module/web/static/js/default.js
@@ -1,5 +1,5 @@
-define('default', ['jquery', 'app', 'views/headerView', 'views/packageTreeView'],
- function($, App, HeaderView, TreeView) {
+define('default', ['require', 'jquery', 'app', 'views/headerView', 'views/packageTreeView'],
+ function(require, $, App, HeaderView, TreeView) {
App.init = function() {
App.header = new HeaderView();
@@ -13,5 +13,12 @@ define('default', ['jquery', 'app', 'views/headerView', 'views/packageTreeView']
});
};
+ App.initSettingsView = function() {
+ require(['views/settingsView'], function(SettingsView) {
+ App.settingsView = new SettingsView();
+ App.settingsView.render();
+ });
+ };
+
return App;
}); \ No newline at end of file
diff --git a/module/web/static/js/views/settingsView.js b/module/web/static/js/views/settingsView.js
new file mode 100644
index 000000000..f4e118233
--- /dev/null
+++ b/module/web/static/js/views/settingsView.js
@@ -0,0 +1,25 @@
+define(['jquery', 'underscore', 'backbone'],
+ function($, _, Backbone) {
+
+ // Renders a single package item
+ return Backbone.View.extend({
+
+ el: "#content",
+// template: _.compile($("#template-package").html()),
+
+ events: {
+
+ },
+
+ initialize: function() {
+ $.ajax("/api/getCoreConfig");
+ $.ajax("/api/getPluginConfig");
+ $.ajax("/api/getAvailablePlugins");
+ console.log("Settings initialized");
+ },
+
+ render: function() {
+ }
+
+ });
+ }); \ No newline at end of file