From f89eff930560214446d3144292fe8739f5cc61e4 Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Wed, 18 May 2011 20:59:12 -0700 Subject: [PATCH] some cleanup --- NzbDrone.Core/Providers/Jobs/JobProvider.cs | 4 ++-- NzbDrone.Web/Controllers/SystemController.cs | 6 +----- NzbDrone.Web/NzbDrone.Web.csproj | 1 + NzbDrone.Web/Scripts/Notification.js | 3 ++- 4 files changed, 6 insertions(+), 8 deletions(-) diff --git a/NzbDrone.Core/Providers/Jobs/JobProvider.cs b/NzbDrone.Core/Providers/Jobs/JobProvider.cs index 4b0dcb9d7..6551a2c62 100644 --- a/NzbDrone.Core/Providers/Jobs/JobProvider.cs +++ b/NzbDrone.Core/Providers/Jobs/JobProvider.cs @@ -130,7 +130,7 @@ public virtual bool QueueJob(Type jobType, int targetId = 0) { if (_isRunning) { - Logger.Trace("Queue is already running. Ignoreing request."); + Logger.Trace("Queue is already running. Ignoring request."); return true; } @@ -189,7 +189,7 @@ private void ProcessQueue() } catch (Exception e) { - Logger.FatalException("An error has occured while processing queued job.", e); + Logger.FatalException("An error has occurred while processing queued job.", e); } finally { diff --git a/NzbDrone.Web/Controllers/SystemController.cs b/NzbDrone.Web/Controllers/SystemController.cs index 7d33db5ea..fdf4dcf19 100644 --- a/NzbDrone.Web/Controllers/SystemController.cs +++ b/NzbDrone.Web/Controllers/SystemController.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Web; -using System.Web.Mvc; +using System.Web.Mvc; using NzbDrone.Core.Providers; using NzbDrone.Core.Providers.Core; using NzbDrone.Core.Providers.Jobs; diff --git a/NzbDrone.Web/NzbDrone.Web.csproj b/NzbDrone.Web/NzbDrone.Web.csproj index c724f2bd6..79ef64cb3 100644 --- a/NzbDrone.Web/NzbDrone.Web.csproj +++ b/NzbDrone.Web/NzbDrone.Web.csproj @@ -214,6 +214,7 @@ True UploadLocalization.en-US.resx + diff --git a/NzbDrone.Web/Scripts/Notification.js b/NzbDrone.Web/Scripts/Notification.js index 052e8d1f3..5d300500a 100644 --- a/NzbDrone.Web/Scripts/Notification.js +++ b/NzbDrone.Web/Scripts/Notification.js @@ -1,5 +1,6 @@ /// -$(function () { + $(document).ready(function () + { var speed = 0; var isShown = false; refreshNotifications();