diff --git a/js/apps/system/aardvark/frontend/js/templates/applicationsView.ejs b/js/apps/system/aardvark/frontend/js/templates/applicationsView.ejs index da47310379..da417fb809 100644 --- a/js/apps/system/aardvark/frontend/js/templates/applicationsView.ejs +++ b/js/apps/system/aardvark/frontend/js/templates/applicationsView.ejs @@ -5,7 +5,11 @@
-
+
diff --git a/js/apps/system/aardvark/frontend/js/templates/foxxActiveView.ejs b/js/apps/system/aardvark/frontend/js/templates/foxxActiveView.ejs new file mode 100644 index 0000000000..eee7e4961f --- /dev/null +++ b/js/apps/system/aardvark/frontend/js/templates/foxxActiveView.ejs @@ -0,0 +1,34 @@ + diff --git a/js/apps/system/aardvark/frontend/js/templates/foxxInstalledView.ejs b/js/apps/system/aardvark/frontend/js/templates/foxxInstalledView.ejs deleted file mode 100644 index d2e93074bf..0000000000 --- a/js/apps/system/aardvark/frontend/js/templates/foxxInstalledView.ejs +++ /dev/null @@ -1,22 +0,0 @@ - diff --git a/js/apps/system/aardvark/frontend/js/templates/modalApplicationMount.ejs b/js/apps/system/aardvark/frontend/js/templates/modalApplicationMount.ejs index ff2bfabd11..c6255d2267 100644 --- a/js/apps/system/aardvark/frontend/js/templates/modalApplicationMount.ejs +++ b/js/apps/system/aardvark/frontend/js/templates/modalApplicationMount.ejs @@ -1,18 +1,4 @@ - diff --git a/js/apps/system/aardvark/frontend/js/views/applicationsView.js b/js/apps/system/aardvark/frontend/js/views/applicationsView.js index 309cdc7393..8870d3bbc4 100644 --- a/js/apps/system/aardvark/frontend/js/views/applicationsView.js +++ b/js/apps/system/aardvark/frontend/js/views/applicationsView.js @@ -8,13 +8,14 @@ window.ApplicationsView = Backbone.View.extend({ template: templateEngine.createTemplate("applicationsView.ejs"), events: { - "click #checkDevel" : "toggleDevel", - "click #checkActive" : "toggleActive", - "click .checkSystem" : "toggleSystem", - "click #foxxToggle" : "slideToggle", - "click #importFoxxToggle" : "slideToggleImport", - "change #importFoxx" : "uploadSetup", - "click #confirmFoxxImport" : "importFoxx", + "click #addApp" : "createInstallModal", + "click #checkDevel" : "toggleDevel", + "click #checkActive" : "toggleActive", + "click .checkSystem" : "toggleSystem", + "click #foxxToggle" : "slideToggle", + "click #importFoxxToggle" : "slideToggleImport", + "change #importFoxx" : "uploadSetup", + "click #confirmFoxxImport" : "importFoxx", "click #installFoxxFromGithub" : "createGithubModal", "click .css-label" : "checkBoxes", "change #appsDesc" : "sorting" @@ -273,7 +274,7 @@ window.ApplicationsView = Backbone.View.extend({ this._availableSubViews = {}; this._showDevel = true; this._showActive = true; - this._showSystem = false; + this._showSystem = true; this.reload(); }, @@ -299,8 +300,6 @@ window.ApplicationsView = Backbone.View.extend({ }, renderSubViews: function () { - $("#availableList").empty(); - $("#installedList").empty(); _.each(this._installedSubViews, function (v) { $("#installedList").append(v.render()); }); @@ -353,5 +352,16 @@ window.ApplicationsView = Backbone.View.extend({ $("#availableList").append(v.render()); } }); + }, + + createInstallModal: function(event) { + event.preventDefault(); + var buttons = []; + window.modalView.show( + "modalApplicationMount.ejs", + "Pijotr", + buttons + ); } + }); diff --git a/js/apps/system/aardvark/frontend/js/views/collectionsItemView.js b/js/apps/system/aardvark/frontend/js/views/collectionsItemView.js index 7f2ad0108c..8befab8526 100644 --- a/js/apps/system/aardvark/frontend/js/views/collectionsItemView.js +++ b/js/apps/system/aardvark/frontend/js/views/collectionsItemView.js @@ -307,7 +307,6 @@ buttons, tableContent ); - } }); diff --git a/js/apps/system/aardvark/manifest.json b/js/apps/system/aardvark/manifest.json index a6d2412bf1..e67a2ebb27 100644 --- a/js/apps/system/aardvark/manifest.json +++ b/js/apps/system/aardvark/manifest.json @@ -44,6 +44,7 @@ "frontend/js/templates/loginView.ejs", "frontend/js/templates/modalBase.ejs", "frontend/js/templates/modalCollectionInfo.ejs", + "frontend/js/templates/modalApplicationMount.ejs", "frontend/js/templates/modalGraph.ejs", "frontend/js/templates/modalNewVersion.ejs", "frontend/js/templates/modalTable.ejs",