Removed 3rd parties from script registrar.

This commit is contained in:
kay.one 2011-07-01 13:28:53 -07:00
parent 7c05157f19
commit 859b68ed9e
5 changed files with 38 additions and 81 deletions

View File

@ -44,12 +44,12 @@
.profileSection .profileSection
{ {
float: left; float: left;
height: 157px;
width: 270px; width: 270px;
margin: 2px; margin: 2px;
border:solid 1px #CCCCCD; border:solid 1px #CCCCCD;
display: inline-block; display: inline-block;
overflow: hidden; overflow: hidden;
padding: 5px 5px 5px 5px;
} }
.profileOptions label .profileOptions label
@ -103,14 +103,6 @@
.qualityHeader .qualityHeader
{ {
background: #d7e6f2; /* Old browsers */
background: -moz-linear-gradient(left, #d7e6f2 0%, #57a9c6 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, right top, color-stop(0%,#d7e6f2), color-stop(100%,#57a9c6)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(left, #d7e6f2 0%,#57a9c6 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(left, #d7e6f2 0%,#57a9c6 100%); /* Opera11.10+ */
background: -ms-linear-gradient(left, #d7e6f2 0%,#57a9c6 100%); /* IE10+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#d7e6f2', endColorstr='#57a9c6',GradientType=1 ); /* IE6-9 */
background: linear-gradient(left, #d7e6f2 0%,#57a9c6 100%); /* W3C */
min-height: 23px; min-height: 23px;
position: relative; position: relative;
} }

View File

@ -580,6 +580,7 @@
<Content Include="Scripts\2011.1.414\telerik.treeview.min.js" /> <Content Include="Scripts\2011.1.414\telerik.treeview.min.js" />
<Content Include="Scripts\2011.1.414\telerik.upload.min.js" /> <Content Include="Scripts\2011.1.414\telerik.upload.min.js" />
<Content Include="Scripts\2011.1.414\telerik.window.min.js" /> <Content Include="Scripts\2011.1.414\telerik.window.min.js" />
<Content Include="Scripts\AutoComplete.js" />
<Content Include="Scripts\doTimeout.js" /> <Content Include="Scripts\doTimeout.js" />
<Content Include="Scripts\episodeSearch.js" /> <Content Include="Scripts\episodeSearch.js" />
<Content Include="Scripts\jquery-1.6.1-vsdoc.js" /> <Content Include="Scripts\jquery-1.6.1-vsdoc.js" />

View File

@ -1,7 +1,4 @@
@{ <div>
Layout = null;
}
<div>
<input id="rootDirInput" type="text" style="width: 400px" /> <input id="rootDirInput" type="text" style="width: 400px" />
<button id="saveDir"> <button id="saveDir">
Add</button> Add</button>
@ -9,21 +6,15 @@
<div id="rootDirs"> <div id="rootDirs">
@{Html.RenderAction("RootList");} @{Html.RenderAction("RootList");}
</div> </div>
@(Html.Telerik().ScriptRegistrar().DefaultGroup(c => c.Add("http://ajax.googleapis.com/ajax/libs/yui/3.3.0/build/yui/yui-min.js")
.Add("AutoComplete.js")
).OnDocumentReady("bindFolderAutoComplete('#rootDirInput')"))
@(Html.Telerik().ScriptRegistrar().OnDocumentReady("onRootReady()"))
<script type="text/javascript"> <script type="text/javascript">
jQuery(document).ready(function() {
function onRootReady() {
$.ajaxSetup({ $.ajaxSetup({
cache: false cache: false
}); });
bindFolderAutoComplete('#rootDirInput');
$('#rootDirInput').watermark('Start typing to add new root folder...'); $('#rootDirInput').watermark('Start typing to add new root folder...');
$('#rootDirs .actionButton img').live('click', $('#rootDirs .actionButton img').live('click',
@ -51,6 +42,6 @@
$('#rootDirs').html(data); $('#rootDirs').html(data);
}); });
} }
} });
</script> </script>

View File

@ -2,13 +2,8 @@
ViewBag.Title = "Test"; ViewBag.Title = "Test";
Layout = "~/Views/Shared/_Layout.cshtml"; Layout = "~/Views/Shared/_Layout.cshtml";
} }
@section HeaderContent
{
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/yui/3.3.0/build/yui/yui-min.js"></script>
}
@{Html.RenderAction("RootDir");} @{Html.RenderAction("RootDir");}
@(Html.Telerik().ScriptRegistrar().Scripts(c => c.AddGroup("TestGroup", group => group
.Add("telerik.common.js")
.Add("telerik.combobox.js")
.Add("telerik.list.js")
.Add("telerik.autocomplete.js")
)))

View File

@ -5,17 +5,25 @@
<link rel="SHORTCUT ICON" href="../../favicon.ico" /> <link rel="SHORTCUT ICON" href="../../favicon.ico" />
<title>NZBDrone</title> <title>NZBDrone</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link href="/Content/Blueprint/screen.css" rel="stylesheet" type="text/css" /> <link type="text/css" rel="stylesheet" href="/Content/Blueprint/screen.css" />
<link type="text/css" href="http://aspnet-skins.telerikstatic.com/mvcz/2011.1.414/telerik.common.min.css" <link type="text/css" rel="stylesheet" href="http://aspnet-skins.telerikstatic.com/mvcz/2011.1.414/telerik.common.min.css" />
rel="stylesheet" /> <link type="text/css" rel="stylesheet" href="http://aspnet-skins.telerikstatic.com/mvcz/2011.1.414/telerik.sitefinity.min.css" />
<link type="text/css" href="http://aspnet-skins.telerikstatic.com/mvcz/2011.1.414/telerik.sitefinity.min.css" <link type="text/css" rel="stylesheet" href="http://aspnet-skins.telerikstatic.com/mvcz/2011.1.414/telerik.rtl.min.css" />
rel="stylesheet" /> <link type="text/css" rel="stylesheet" href="/Content/Site.css" />
<link type="text/css" href="http://aspnet-skins.telerikstatic.com/mvcz/2011.1.414/telerik.rtl.min.css" <link type="text/css" rel="stylesheet" href="/Content/Notibar.css" />
rel="stylesheet" /> <link type="text/css" rel="stylesheet" href="/Content/ActionButton.css" />
<link href="/Content/Site.css" rel="stylesheet" type="text/css" /> <link type="text/css" rel="stylesheet" href="/Content/overrides.css" />
<link href="/Content/Notibar.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js" />
<link href="/Content/ActionButton.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.13/jquery-ui.min.js" />
<link href="/Content/overrides.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/4.0/1/MicrosoftAjax.js" />
<script type="text/javascript" src="/Scripts/jquery.form.js"></script>
<script type="text/javascript" src="/Scripts/jquery.jgrowl.js"></script>
<script type="text/javascript" src="/Scripts/jquery-tgc-countdown-1.0.js"></script>
<script type="text/javascript" src="/Scripts/MicrosoftMvcValidation.debug.js"></script>
<script type="text/javascript" src="/Scripts/Notification.js"></script>
<script type="text/javascript" src="/Scripts/episodeSearch.js"></script>
<script type="text/javascript" src="/Scripts/autocomplete.js"></script>
<script type="text/javascript" src="/Scripts/jquery.watermark.min.js"></script>
@RenderSection("HeaderContent", required: false) @RenderSection("HeaderContent", required: false)
</head> </head>
<body> <body>
@ -49,39 +57,9 @@
</div> </div>
</div> </div>
<div id="msgBox"> <div id="msgBox">
<span id="msgText">Scanning Series Folder...</span> <span id="msgText">background notification</span>
</div> </div>
@(Html.Telerik().ScriptRegistrar().Scripts( @(Html.Telerik().ScriptRegistrar().jQuery(false))
c => c.AddGroup("CDN", group => group
.Add("http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.13/jquery-ui.min.js")
//.Add("http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.13/jquery-ui.min.js")
.Add("http://ajax.aspnetcdn.com/ajax/4.0/1/MicrosoftAjax.js"))
.AddGroup("3rdParty", group => group
.Add("jquery.form.js")
.Add("jquery.jgrowl.js")
.Add("jquery-tgc-countdown-1.0.js")
.Add("jquery.watermark.min.js")
.Add("MicrosoftMvcValidation.js"))
.AddGroup("NzbDrone", group => group
.Add("Notification.js")
.Add("episodeSearch.js"))
))
<script type="text/javascript">
jQuery(document).ready(function () {
document.getElementById('syncTimer').style.display = 'inline'; //Show the timer after the page loads, prevents FOUC (Flash of Unstyled Content)
$('#syncTimer').tgcCountdown({
counter: '<div style="color: #065EFE;">[H]:[M]:[S]</div>',
counter_warning: '<div style="color: #065EFE;">[H]:[M]:[S]</div>',
counter_expired: '<div style="color: #FFFFFF;">00:00:00</div>',
interval: 1000,
warnonminutesleft: 1
});
});
</script>
@RenderSection("Scripts", required: false) @RenderSection("Scripts", required: false)
</body> </body>
</html> </html>