aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/update-center/footer-view.js
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2015-09-17 16:15:28 +0200
committerStas Vilchik <vilchiks@gmail.com>2015-09-18 10:47:27 +0200
commit890ab0b59cdb3902f4869eabf8ca534814f1b3dd (patch)
tree0ed74726957e590f6506e378366ea15bf21bfcbd /server/sonar-web/src/main/js/apps/update-center/footer-view.js
parentce60ac8d2e137f33bb111668e54e78c195c73d79 (diff)
downloadsonarqube-890ab0b59cdb3902f4869eabf8ca534814f1b3dd.tar.gz
sonarqube-890ab0b59cdb3902f4869eabf8ca534814f1b3dd.zip
migrate js apps to es2015 modules
Diffstat (limited to 'server/sonar-web/src/main/js/apps/update-center/footer-view.js')
-rw-r--r--server/sonar-web/src/main/js/apps/update-center/footer-view.js30
1 files changed, 15 insertions, 15 deletions
diff --git a/server/sonar-web/src/main/js/apps/update-center/footer-view.js b/server/sonar-web/src/main/js/apps/update-center/footer-view.js
index 2f83d509dc7..085dacf43c2 100644
--- a/server/sonar-web/src/main/js/apps/update-center/footer-view.js
+++ b/server/sonar-web/src/main/js/apps/update-center/footer-view.js
@@ -1,19 +1,19 @@
-define([
- './templates'
-], function () {
+import _ from 'underscore';
+import Marionette from 'backbone.marionette';
+import './templates';
- return Marionette.ItemView.extend({
- template: Templates['update-center-footer'],
+export default Marionette.ItemView.extend({
+ template: Templates['update-center-footer'],
- collectionEvents: {
- 'all': 'render'
- },
-
- serializeData: function () {
- return _.extend(this._super(), {
- total: this.collection.where({ _hidden: false }).length
- });
- }
- });
+ collectionEvents: {
+ 'all': 'render'
+ },
+ serializeData: function () {
+ return _.extend(this._super(), {
+ total: this.collection.where({ _hidden: false }).length
+ });
+ }
});
+
+