From 754f9c513433cefdf9b626f30f42c325b5957960 Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Sat, 30 Mar 2013 12:01:27 -0700 Subject: [PATCH] more javascript coding rules in webstorm. --- UI/.idea/NzbDrone.UI.iml | 1 + UI/.idea/dictionaries/Keivan.xml | 2 + .../inspectionProfiles/Project_Default.xml | 59 +++++++++++++++++++ UI/.idea/jsLibraryMappings.xml | 2 +- UI/.idea/libraries/libraries.xml | 53 +++++++++++++++++ UI/Controller.js | 7 ++- UI/Index.html | 2 +- 7 files changed, 121 insertions(+), 5 deletions(-) create mode 100644 UI/.idea/libraries/libraries.xml diff --git a/UI/.idea/NzbDrone.UI.iml b/UI/.idea/NzbDrone.UI.iml index 9ffbb36a1..7c7853f2f 100644 --- a/UI/.idea/NzbDrone.UI.iml +++ b/UI/.idea/NzbDrone.UI.iml @@ -5,6 +5,7 @@ + diff --git a/UI/.idea/dictionaries/Keivan.xml b/UI/.idea/dictionaries/Keivan.xml index 8999e31fe..9dc8e0ee1 100644 --- a/UI/.idea/dictionaries/Keivan.xml +++ b/UI/.idea/dictionaries/Keivan.xml @@ -1,6 +1,8 @@ + deps + nzbdrone rootfolder diff --git a/UI/.idea/inspectionProfiles/Project_Default.xml b/UI/.idea/inspectionProfiles/Project_Default.xml index 2862b109e..c5d2c1499 100644 --- a/UI/.idea/inspectionProfiles/Project_Default.xml +++ b/UI/.idea/inspectionProfiles/Project_Default.xml @@ -2,7 +2,66 @@ \ No newline at end of file diff --git a/UI/.idea/jsLibraryMappings.xml b/UI/.idea/jsLibraryMappings.xml index 723694460..c09b6ec1f 100644 --- a/UI/.idea/jsLibraryMappings.xml +++ b/UI/.idea/jsLibraryMappings.xml @@ -1,7 +1,7 @@ - + diff --git a/UI/.idea/libraries/libraries.xml b/UI/.idea/libraries/libraries.xml new file mode 100644 index 000000000..4034625c6 --- /dev/null +++ b/UI/.idea/libraries/libraries.xml @@ -0,0 +1,53 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/UI/Controller.js b/UI/Controller.js index f83aa4c14..ad50b0ef6 100644 --- a/UI/Controller.js +++ b/UI/Controller.js @@ -1,4 +1,5 @@ -define(['app', 'Shared/ModalRegion', 'AddSeries/AddSeriesLayout', +"use strict"; +define(['app', 'Shared/ModalRegion', 'AddSeries/AddSeriesLayout', 'Series/Index/SeriesIndexCollectionView', 'Upcoming/UpcomingCollectionView', 'Calendar/CalendarCollectionView', 'Shared/NotificationView', 'Shared/NotFoundView', 'MainMenuView', 'HeaderView', @@ -13,7 +14,7 @@ NzbDrone.mainRegion.show(new NzbDrone.AddSeries.AddSeriesLayout(this, action, query)); }, - series: function (action, query) { + series: function () { this.setTitle('NzbDrone'); NzbDrone.mainRegion.show(new NzbDrone.Series.Index.SeriesIndexCollectionView()); }, @@ -62,7 +63,7 @@ success: function (missing) { NzbDrone.mainRegion.show(new NzbDrone.Missing.MissingCollectionView(this, action, query, missing)); } - }) + }); }, notFound: function () { diff --git a/UI/Index.html b/UI/Index.html index 6cd623431..6fca5c062 100644 --- a/UI/Index.html +++ b/UI/Index.html @@ -93,7 +93,7 @@ - +