diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2015-01-20 13:28:52 +0100 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2015-01-21 09:16:59 +0100 |
commit | 0a06380c47424d6fd7958f3b2cf6ef28b5c8116d (patch) | |
tree | 02123f7861c04eb87e320d6f33dc4a3a011bac05 /server/sonar-web/src/main/js/common | |
parent | fb21d4cbafc3a5e7b9c63c0df300129d9135045b (diff) | |
download | sonarqube-0a06380c47424d6fd7958f3b2cf6ef28b5c8116d.tar.gz sonarqube-0a06380c47424d6fd7958f3b2cf6ef28b5c8116d.zip |
Reverse "SONAR-6041 New webapp layout"
Diffstat (limited to 'server/sonar-web/src/main/js/common')
-rw-r--r-- | server/sonar-web/src/main/js/common/selectable-collection-view.js | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/server/sonar-web/src/main/js/common/selectable-collection-view.js b/server/sonar-web/src/main/js/common/selectable-collection-view.js deleted file mode 100644 index 6ddce02f574..00000000000 --- a/server/sonar-web/src/main/js/common/selectable-collection-view.js +++ /dev/null @@ -1,62 +0,0 @@ -define(function () { - - return Marionette.CollectionView.extend({ - - initialize: function () { - this.resetSelectedIndex(); - this.listenTo(this.collection, 'reset', this.resetSelectedIndex); - }, - - resetSelectedIndex: function () { - this.selectedIndex = 0; - }, - - onRender: function () { - this.selectCurrent(); - }, - - submitCurrent: function () { - var view = this.children.findByIndex(this.selectedIndex); - if (view != null) { - view.submit(); - } - }, - - selectCurrent: function () { - this.selectItem(this.selectedIndex); - }, - - selectNext: function () { - if (this.selectedIndex < this.collection.length - 1) { - this.deselectItem(this.selectedIndex); - this.selectedIndex++; - this.selectItem(this.selectedIndex); - } - }, - - selectPrev: function () { - if (this.selectedIndex > 0) { - this.deselectItem(this.selectedIndex); - this.selectedIndex--; - this.selectItem(this.selectedIndex); - } - }, - - selectItem: function (index) { - if (index >= 0 && index < this.collection.length) { - var view = this.children.findByIndex(index); - if (view != null) { - view.select(); - } - } - }, - - deselectItem: function (index) { - var view = this.children.findByIndex(index); - if (view != null) { - view.deselect(); - } - } - }); - -}); |