fixed some jshint issues.

This commit is contained in:
kay.one 2013-03-30 12:30:00 -07:00
commit e981ef4752
11 changed files with 54 additions and 19 deletions

View file

@ -1,4 +1,5 @@
define(['app', 'Calendar/CalendarModel'], function () {
"use strict";
define(['app', 'Calendar/CalendarModel'], function () {
NzbDrone.Calendar.CalendarCollection = Backbone.Collection.extend({
url : NzbDrone.Constants.ApiRoot + '/calendar',
model : NzbDrone.Calendar.CalendarModel,

View file

@ -1,6 +1,6 @@
'use strict';
define(['app', 'Calendar/CalendarItemView'], function (app) {
define(['app', 'Calendar/CalendarItemView'], function () {
NzbDrone.Calendar.CalendarCollectionView = Backbone.Marionette.CompositeView.extend({
itemView : NzbDrone.Calendar.CalendarItemView,
itemViewContainer: '#events',
@ -47,10 +47,10 @@ define(['app', 'Calendar/CalendarItemView'], function (app) {
trigger : 'manual'
});
},
eventMouseover: function (event, jsEvent, view) {
eventMouseover: function () {
$(this).popover('show');
},
eventMouseout : function (event, jsEvent, view) {
eventMouseout : function () {
$(this).popover('hide');
}
});

View file

@ -13,5 +13,5 @@ define([
onRender: function () {
NzbDrone.ModelBinder.bind(this.model, this.el);
}
})
})
});
});

View file

@ -1,4 +1,5 @@
define(['app'], function (app) {
"use strict";
define(['app'], function () {
NzbDrone.Calendar.CalendarModel = Backbone.Model.extend({
mutators: {
title : function () {
@ -47,7 +48,7 @@
},
bestDateString : function () {
return bestDateString(this.get('start'));
},
}
},
defaults: {
status: 0