aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/computation/search-view.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/apps/computation/search-view.js')
-rw-r--r--server/sonar-web/src/main/js/apps/computation/search-view.js64
1 files changed, 32 insertions, 32 deletions
diff --git a/server/sonar-web/src/main/js/apps/computation/search-view.js b/server/sonar-web/src/main/js/apps/computation/search-view.js
index 75ab65c4dad..1e896df0c16 100644
--- a/server/sonar-web/src/main/js/apps/computation/search-view.js
+++ b/server/sonar-web/src/main/js/apps/computation/search-view.js
@@ -1,34 +1,34 @@
-define([
- './templates'
-], function () {
-
- return Marionette.ItemView.extend({
- template: Templates['computation-search'],
-
- collectionEvents: {
- 'all': 'render'
- },
-
- events: {
- 'click .js-queue': 'queue',
- 'click .js-history': 'history'
- },
-
- queue: function (e) {
- e.preventDefault();
- this.options.router.navigate('current', { trigger: true });
- },
-
- history: function (e) {
- e.preventDefault();
- this.options.router.navigate('past', { trigger: true });
- },
-
- serializeData: function () {
- return _.extend(Marionette.ItemView.prototype.serializeData.apply(this, arguments), {
- tab: this.collection.q
- });
- }
- });
+import _ from 'underscore';
+import Marionette from 'backbone.marionette';
+import './templates';
+export default Marionette.ItemView.extend({
+ template: Templates['computation-search'],
+
+ collectionEvents: {
+ 'all': 'render'
+ },
+
+ events: {
+ 'click .js-queue': 'queue',
+ 'click .js-history': 'history'
+ },
+
+ queue: function (e) {
+ e.preventDefault();
+ this.options.router.navigate('current', { trigger: true });
+ },
+
+ history: function (e) {
+ e.preventDefault();
+ this.options.router.navigate('past', { trigger: true });
+ },
+
+ serializeData: function () {
+ return _.extend(Marionette.ItemView.prototype.serializeData.apply(this, arguments), {
+ tab: this.collection.q
+ });
+ }
});
+
+