diff options
Diffstat (limited to 'server/sonar-web/src/main/js/apps/provisioning/header-view.js')
-rw-r--r-- | server/sonar-web/src/main/js/apps/provisioning/header-view.js | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/apps/provisioning/header-view.js b/server/sonar-web/src/main/js/apps/provisioning/header-view.js new file mode 100644 index 00000000000..4be7c21196d --- /dev/null +++ b/server/sonar-web/src/main/js/apps/provisioning/header-view.js @@ -0,0 +1,25 @@ +define([ + './create-view', + './templates' +], function (CreateView) { + + return Marionette.ItemView.extend({ + template: Templates['provisioning-header'], + + events: { + 'click #provisioning-create': 'onCreateClick' + }, + + onCreateClick: function (e) { + e.preventDefault(); + this.createProject(); + }, + + createProject: function () { + new CreateView({ + collection: this.collection + }).render(); + } + }); + +}); |