diff options
Diffstat (limited to 'module/web/app/scripts/views/dashboard')
5 files changed, 10 insertions, 6 deletions
diff --git a/module/web/app/scripts/views/dashboard/dashboardView.js b/module/web/app/scripts/views/dashboard/dashboardView.js index 0ae9110d7..e7adba475 100644 --- a/module/web/app/scripts/views/dashboard/dashboardView.js +++ b/module/web/app/scripts/views/dashboard/dashboardView.js @@ -1,6 +1,7 @@ define(['jquery', 'backbone', 'underscore', 'app', 'models/TreeCollection', './packageView', './fileView', 'hbs!tpl/dashboard/layout', 'select2'], - function($, Backbone, _, App, TreeCollection, packageView, fileView, template) { + function($, Backbone, _, App, TreeCollection, PackageView, FileView, template) { + 'use strict'; // Renders whole dashboard return Backbone.Marionette.ItemView.extend({ @@ -58,7 +59,7 @@ define(['jquery', 'backbone', 'underscore', 'app', 'models/TreeCollection', }); }}); - this.$('.input').select2({tags: ["a", "b", "sdf"]}); + this.$('.input').select2({tags: ['a', 'b', 'sdf']}); }, update: function() { @@ -87,12 +88,12 @@ define(['jquery', 'backbone', 'underscore', 'app', 'models/TreeCollection', // TODO sorting ?! // Append a package to the list, index, animate it appendPackage: function(pack, i, animation) { - var el = new packageView({model: pack}).render().el; + var el = new PackageView({model: pack}).render().el; $(this.ui.packages).appendWithAnimation(el, animation); }, appendFile: function(file, i, animation) { - var el = new fileView({model: file}).render().el; + var el = new FileView({model: file}).render().el; $(this.ui.files).appendWithAnimation(el, animation); }, diff --git a/module/web/app/scripts/views/dashboard/fileView.js b/module/web/app/scripts/views/dashboard/fileView.js index c0eec7adf..4e5884ed8 100644 --- a/module/web/app/scripts/views/dashboard/fileView.js +++ b/module/web/app/scripts/views/dashboard/fileView.js @@ -1,5 +1,6 @@ define(['jquery', 'backbone', 'underscore', 'app', 'utils/apitypes', 'views/abstract/itemView', 'helpers/formatTime', 'hbs!tpl/dashboard/file'], function($, Backbone, _, App, Api, ItemView, formatTime, template) { + 'use strict'; // Renders single file item return ItemView.extend({ @@ -91,7 +92,7 @@ define(['jquery', 'backbone', 'underscore', 'app', 'utils/apitypes', 'views/abst bar.html(' ' + formatTime(this.model.get('eta'))); } else if (this.model.get('download').status === Api.DownloadStatus.Waiting) { this.$('.second').html( - "<i class='icon-time'></i> " + formatTime(this.model.get('eta'))); + '<i class="icon-time"></i> ' + formatTime(this.model.get('eta'))); } else // Every else state can be renderred normally this.render(); diff --git a/module/web/app/scripts/views/dashboard/filterView.js b/module/web/app/scripts/views/dashboard/filterView.js index bcbda64c8..64bc56724 100644 --- a/module/web/app/scripts/views/dashboard/filterView.js +++ b/module/web/app/scripts/views/dashboard/filterView.js @@ -1,4 +1,5 @@ define(['jquery', 'backbone', 'underscore', 'app', 'utils/apitypes', 'models/Package', 'hbs!tpl/dashboard/actionbar'], + /*jslint -W040: false*/ function($, Backbone, _, App, Api, Package, template) { 'use strict'; diff --git a/module/web/app/scripts/views/dashboard/packageView.js b/module/web/app/scripts/views/dashboard/packageView.js index 6e09cbb96..2738fcbea 100644 --- a/module/web/app/scripts/views/dashboard/packageView.js +++ b/module/web/app/scripts/views/dashboard/packageView.js @@ -1,5 +1,6 @@ define(['jquery', 'app', 'views/abstract/itemView', 'underscore', 'hbs!tpl/dashboard/package'], function($, App, itemView, _, template) { + 'use strict'; // Renders a single package item return itemView.extend({ diff --git a/module/web/app/scripts/views/dashboard/selectionView.js b/module/web/app/scripts/views/dashboard/selectionView.js index a070aa9a0..8685fd849 100644 --- a/module/web/app/scripts/views/dashboard/selectionView.js +++ b/module/web/app/scripts/views/dashboard/selectionView.js @@ -96,7 +96,7 @@ define(['jquery', 'backbone', 'underscore', 'app', 'hbs!tpl/dashboard/select'], }, pause: function() { - alert("Not implemented yet"); + alert('Not implemented yet'); this.deselect(); }, |