Profiles wrap horizontally now, instead of making the page super long. On load the Unknown quality is removed from the dropdownlist if it exists.

pull/7/merge
Mark McDowall 14 years ago
parent cd85964edd
commit 8b8dfb0d72

@ -44,10 +44,10 @@
@using (Html.BeginForm("SaveQuality", "Settings", FormMethod.Post, new {id = "form", name = "form"}))
{
<fieldset>
<fieldset style="position: relative;">
<legend>Quality</legend>
<div class="rightSide" style="float: right; width: 65%;">
<div id="top">
<div class="config-section">
<div class="config-group">
<div class="config-title">@Html.LabelFor(m => m.DefaultQualityProfileId)</div>
@ -59,9 +59,7 @@
</div>
</div>
</div>
<div id="leftSide" style="width:35%;">
<div style="padding-top: 10px;">
<div id="bottom" style="float: left; padding-bottom: 55px;">
<div style="padding-left: 7px; margin-bottom: 5px;">
<a id="addItem" style="text-decoration:none;" href="@Url.Action("AddProfile", "Settings")">
<img src="../../Content/Images/Plus.png" alt="Add New Profile" />
@ -76,11 +74,7 @@
</div>
</div>
<div style="margin-top: 10px; padding-left: 5px;">
<input type="submit" id="save_button" value="Save" disabled="disabled" />
</div>
</div>
<input type="submit" id="save_button" value="Save" disabled="disabled" style="position: absolute; bottom: 0px; display: block; padding-left: 5px;"/>
</fieldset>
}
<div id="result" class="hiddenResult"></div>

@ -24,7 +24,7 @@
string nameBox = String.Format("{0}_Name", idClean);
string cutoff = String.Format("{0}_Cutoff", idClean);
<div class="profileSectionEditor" id="div_@(ViewData["ProfileId"])">
<div class="profileSectionEditor" id="profile_@(ViewData["ProfileId"])" style="float: left; height: 175px; width: 285px; margin-bottom: -14px;">
<fieldset style="width:264px; margin:5px; margin-top: 0px; border-color:#CCCCCD">
<div class="header">
@ -89,6 +89,8 @@
$("#@allowedStringName").empty().val(result);
$('#@selectable .quality-selectee').disableSelection();
$('#@cutoff option').each(function () { if ($(this).text().indexOf('Unknown') > -1) $('#@cutoff option').remove(':contains("' + $(this).text() + '")'); });
});
$("#@nameBox").keyup(function () {

Loading…
Cancel
Save