diff --git a/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/views/ProjectForm/ProjectFormController.js b/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/views/ProjectForm/ProjectFormController.js index 2f420b1181cdc7f1d36c2ac4363fcf99e38d4959..d117a14d625572e31df2edde2ee2642b5a8496ba 100644 --- a/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/views/ProjectForm/ProjectFormController.js +++ b/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/views/ProjectForm/ProjectFormController.js @@ -74,6 +74,7 @@ function ProjectFormController(mainController, mode, project) { } var callbackOk = function() { + _this._projectFormModel.isFormDirty = false; _this._mainController.changeView("showProjectPageFromIdentifier", parameters["projectIdentifier"]); Util.unblockUI(); } diff --git a/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/views/SpaceForm/SpaceFormController.js b/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/views/SpaceForm/SpaceFormController.js index cc6e4c4bcb2b65ed7bef82a593e339509c4fbf1f..66c80ab1ee4c074c532030bb69b217f0369bf2ec 100644 --- a/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/views/SpaceForm/SpaceFormController.js +++ b/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/views/SpaceForm/SpaceFormController.js @@ -22,4 +22,8 @@ function SpaceFormController(mainController, space) { this.init = function($container) { this._spaceFormView.repaint($container); } + + this.createProject = function() { + this._mainController.changeView('showCreateProjectPage', this._spaceFormModel.space.code); + } } \ No newline at end of file diff --git a/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/views/SpaceForm/SpaceFormView.js b/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/views/SpaceForm/SpaceFormView.js index 4201534fc4d66af9a26f9dd8e73f17dfda6da7b3..f242f665cdd409f878c203a1b4261c59b101748e 100644 --- a/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/views/SpaceForm/SpaceFormView.js +++ b/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/views/SpaceForm/SpaceFormView.js @@ -28,8 +28,16 @@ function SpaceFormView(spaceFormController, spaceFormModel) { $form.append($formColumn); var $formTitle = $("<h2>").append("Space " + this._spaceFormModel.space.code); - $formColumn.append($formTitle); + var $btn = $("<a>", { "class" : "btn btn-default"}).append("Create Project"); + $btn.click(function() { + _this._spaceFormController.createProject(); + }); + + $formTitle.append(" "); + $formTitle.append($btn); + + $formColumn.append($formTitle); $container.append($form); } } \ No newline at end of file