2011-03-10 08:49:59 +01:00
|
|
|
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<AddNewSeriesModel>" %>
|
|
|
|
<%@ Import Namespace="NzbDrone.Web.Models" %>
|
|
|
|
<%@ Import Namespace="Telerik.Web.Mvc.UI" %>
|
|
|
|
|
|
|
|
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
|
|
|
|
Add New Series
|
|
|
|
</asp:Content>
|
|
|
|
<asp:Content ID="Menu" ContentPlaceHolderID="ActionMenu" runat="server">
|
|
|
|
<%
|
|
|
|
Html.RenderPartial("SubMenu");
|
|
|
|
%>
|
|
|
|
</asp:Content>
|
|
|
|
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
|
|
|
|
|
|
|
|
<%= Html.Label("Enter a Series Name") %>
|
2011-03-11 10:04:56 +01:00
|
|
|
<%= Html.TextBox("new_series_name", String.Empty, new { id="new_series_id" }) %>
|
2011-03-10 08:49:59 +01:00
|
|
|
|
2011-03-11 10:04:56 +01:00
|
|
|
<p>
|
|
|
|
<button class="t.button" onclick="searchSeries ()">Search</button>
|
|
|
|
</p>
|
2011-03-10 08:49:59 +01:00
|
|
|
|
2011-03-11 10:04:56 +01:00
|
|
|
<div id="result"></div>
|
|
|
|
|
|
|
|
<script type="text/javascript" language="javascript">
|
|
|
|
|
|
|
|
function searchSeries() {
|
|
|
|
var seriesSearch = $('#new_series_id');
|
|
|
|
|
|
|
|
// if ($seriesSearch.length < 1) {
|
|
|
|
// alert("Enter a valid name to search for");
|
|
|
|
// return;
|
|
|
|
// }
|
|
|
|
|
|
|
|
//Setup a function to handle the results... Or return a partial...
|
|
|
|
$("#result").load('<%=Url.Action("SearchForSeries", "Series") %>', {
|
|
|
|
seriesName: seriesSearch.val()
|
|
|
|
}
|
|
|
|
|
|
|
|
//this.window.location = '<%= Url.Action("Index", "Series") %>';
|
|
|
|
|
|
|
|
);
|
|
|
|
}
|
|
|
|
</script>
|
2011-03-15 16:29:14 +01:00
|
|
|
<div id="tester"></div>
|
2011-03-10 08:49:59 +01:00
|
|
|
|
|
|
|
</asp:Content>
|