2011-04-01 06:36:34 +00:00
|
|
|
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<String>>" %>
|
|
|
|
|
|
|
|
<%@ Import Namespace="Telerik.Web.Mvc.UI" %>
|
|
|
|
<%@ Import Namespace="NzbDrone.Web.Models" %>
|
|
|
|
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
|
|
|
|
Add Existing Series
|
|
|
|
</asp:Content>
|
|
|
|
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
|
|
|
|
<%
|
2011-04-05 02:48:46 +00:00
|
|
|
if (Model.Count() == 0)
|
|
|
|
Html.DisplayText("No Series to Add");
|
2011-04-07 23:49:18 +00:00
|
|
|
%>
|
|
|
|
|
|
|
|
<%: Html.DropDownList("masterDropbox", (SelectList)ViewData["qualities"], new { style = "width: 100px;", id = "masterDropboxId" })%>
|
|
|
|
|
|
|
|
<%: @Html.Telerik().DropDownList().Name("tester").BindTo((SelectList)ViewData["qualities"]).HtmlAttributes(new { style = "width: 100px", @class = "qualityDropbox" })%>
|
|
|
|
|
|
|
|
|
2011-04-05 02:48:46 +00:00
|
|
|
|
2011-04-07 23:49:18 +00:00
|
|
|
<%
|
2011-04-01 06:36:34 +00:00
|
|
|
foreach (var path in Model)
|
|
|
|
{
|
|
|
|
Html.RenderAction("RenderPartial", "AddSeries", new { path });
|
|
|
|
}
|
|
|
|
|
|
|
|
%>
|
2011-04-07 23:49:18 +00:00
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
|
|
|
$("#masterDropboxId").change(function () {
|
|
|
|
var selectedQuality = $('#masterDropboxId').get(0).selectedIndex;
|
|
|
|
//$(".qualityDropbox").data("tComboBox").value(selectedQuality);
|
|
|
|
//$(".qualityDropbox").data("tDropDownList").val(selectedQuality);
|
|
|
|
|
|
|
|
var comboBox = $(".qualityDropbox").data("tDropDownList");
|
|
|
|
comboBox.select(selectedQuality);
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
</asp:Content>
|