diff --git a/NzbDrone.Web/Content/Images/Indexers/Nzbsorg.png b/NzbDrone.Web/Content/Images/Indexers/Nzbs.org.png
similarity index 100%
rename from NzbDrone.Web/Content/Images/Indexers/Nzbsorg.png
rename to NzbDrone.Web/Content/Images/Indexers/Nzbs.org.png
diff --git a/NzbDrone.Web/NzbDrone.Web.csproj b/NzbDrone.Web/NzbDrone.Web.csproj
index 28c065394..93d313e5e 100644
--- a/NzbDrone.Web/NzbDrone.Web.csproj
+++ b/NzbDrone.Web/NzbDrone.Web.csproj
@@ -146,7 +146,7 @@
" +
- "&episodeId=<#= EpisodeId #>\" onclick=\"redownload(<#= HistoryId #>, <#= EpisodeId #>); return false;\">
")
+ .ClientTemplate(Ajax.ImageActionLink("../../Content/Images/X.png", new { Alt = "Delete", Title = "Delete from history", @class = "searchImage" }, "Delete", "History", new { HistoryId = "<#= HistoryId #>" }, new AjaxOptions { OnSuccess = "reloadHistoryGrid" }, null).ToString() +
+ Ajax.ImageActionLink("../../Content/Images/Downloading.png", new { Alt = "Redownload", Title = "Redownlod Episode", @class = "searchImage" }, "Redownload", "History", new { HistoryId = "<#= HistoryId #>", EpisodeId = "<#= EpisodeId #>" }, new AjaxOptions { OnSuccess = "reloadHistoryGrid" }, null).ToString())
.Width("40");
})
.DetailView(detailView => detailView.ClientTemplate(
@@ -59,26 +59,4 @@
var grid = $('#history').data('tGrid');
grid.ajaxRequest();
}
-
- function deleteHistoryRow(historyId) {
- $.ajax({
- type: "POST",
- url: deleteHistoryRowUrl,
- data: jQuery.param({ historyId: historyId }),
- success: function () {
- reloadHistoryGrid();
- }
- });
- }
-
- function redownload(historyId, episodeId) {
- $.ajax({
- type: "POST",
- url: redownloadUrl,
- data: jQuery.param({ historyId: historyId, episodeId: episodeId }),
- success: function () {
- reloadHistoryGrid();
- }
- });
- }
diff --git a/NzbDrone.Web/Views/Missing/Index.cshtml b/NzbDrone.Web/Views/Missing/Index.cshtml
index 32baec4ce..a0bf3ce6e 100644
--- a/NzbDrone.Web/Views/Missing/Index.cshtml
+++ b/NzbDrone.Web/Views/Missing/Index.cshtml
@@ -30,7 +30,7 @@
.Width(90);
columns.Bound(c => c.EpisodeId)
.Title("Actions")
- .ClientTemplate("\" onClick=\"searchForEpisode(<#= EpisodeId #>); return false;\">
")
+ .ClientTemplate(Ajax.ImageActionLink("../../Content/Images/Search.png", new { Alt = "Search", Title = "Search for episode", @class = "searchImage" }, "Search", "Episode", new { EpisodeId = "<#= EpisodeId #>" }, null, null).ToString())
.Width("40");
})
.DetailView(detailView => detailView.ClientTemplate(
diff --git a/NzbDrone.Web/Views/Series/Details.cshtml b/NzbDrone.Web/Views/Series/Details.cshtml
index db0687ffd..a67bb04f0 100644
--- a/NzbDrone.Web/Views/Series/Details.cshtml
+++ b/NzbDrone.Web/Views/Series/Details.cshtml
@@ -110,12 +110,12 @@
columns.Bound(c => c.Status).Sortable(false)
.Title("
" +
"
" +
- "
" +
- "
")
- .ClientTemplate("
" +
+ Ajax.ImageActionLink("../../Content/Images/Search.png", new { Alt = "Search", Title = "Search for all episodes in this season", @class = "searchImage searchImageMaster" }, "SearchSeason", "Episode", new { SeriesId = seriesId, SeasonNumber = season }, null, null) +
+ Ajax.ImageActionLink("../../Content/Images/Rename.png", new { Alt = "Rename", Title = "Rename all episodes in this season", @class = "renameImage renameImageMaster" }, "RenameSeason", "Episode", new { SeriesId = seriesId, SeasonNumber = season }, null, null))
+ .ClientTemplate("
" +
"
" +
- "\" onclick=\"searchForEpisode('<#= EpisodeId #>'); return false;\">
" +
- "\" onclick=\"renameEpisode('<#= EpisodeFileId #>'); return false;\">
")
+ Ajax.ImageActionLink("../../Content/Images/Search.png", new { Alt = "Search", Title = "Search for episode", @class = "searchImage" }, "Search", "Episode", new { EpisodeId = "<#= EpisodeId #>" }, null, null) +
+ Ajax.ImageActionLink("../../Content/Images/Rename.png", new { Alt = "Rename", Title = "Rename episode", @class = "renameImage" }, "Rename", "Episode", new { EpisodeId = "<#= EpisodeId #>" }, null, null))
.Width(80);
})
.DetailView(detailView => detailView.ClientTemplate("