mirror of
https://github.com/Sonarr/Sonarr.git
synced 2025-01-25 11:13:39 +02:00
Season Editor loading is now obvious.
Saving Series Grid Edit shows AJAX wheel now, so you know its actually working.
This commit is contained in:
parent
08b7b8c3e1
commit
8c82133ab0
@ -31,7 +31,12 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="seasonEditorSection">
|
<div id="seasonEditorSection">
|
||||||
<div style="font-weight: bold; padding-right: 15px; padding-bottom: 5px;">@Html.LabelFor(m => m.SeasonEditor)</div>
|
<div style="font-weight: bold; padding-right: 15px; padding-bottom: 5px;">
|
||||||
|
@Html.LabelFor(m => m.SeasonEditor)
|
||||||
|
<span id="seasonEditorLoader"><img src="../../../Content/Images/ajax-loader.gif" width="14px" height="14px" style="margin-bottom: -2px;"/></span>
|
||||||
|
</div>
|
||||||
<div id="season-editor"></div>
|
<div id="season-editor"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
</div>
|
||||||
|
<span id="ajaxSaveWheel" style="display: none; float: right; padding-right: 368px; padding-top: 1.5px;"><img src="../../../Content/Images/ajax-loader.gif" width="20px" height="20px"/></span>
|
@ -153,10 +153,14 @@
|
|||||||
|
|
||||||
var seriesId = args.dataItem.SeriesId;
|
var seriesId = args.dataItem.SeriesId;
|
||||||
var url = '@Url.Action("SeasonEditor", "Series")';
|
var url = '@Url.Action("SeasonEditor", "Series")';
|
||||||
$('#season-editor').load(url, { seriesId: seriesId });
|
$('#season-editor').load(url, { seriesId: seriesId }, function (response, status, xhr) {
|
||||||
|
$('#seasonEditorLoader').hide();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function grid_save(e) {
|
function grid_save(e) {
|
||||||
|
$('#ajaxSaveWheel').show();
|
||||||
|
|
||||||
var seasonEditor = e.form.SeasonEditor_collection;
|
var seasonEditor = e.form.SeasonEditor_collection;
|
||||||
var saveSeasonEditUrl = '@Url.Action("SaveSeason", "Series")';
|
var saveSeasonEditUrl = '@Url.Action("SaveSeason", "Series")';
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
{
|
{
|
||||||
var idClean = ViewData.TemplateInfo.HtmlFieldPrefix.Replace('[', '_').Replace(']', '_');
|
var idClean = ViewData.TemplateInfo.HtmlFieldPrefix.Replace('[', '_').Replace(']', '_');
|
||||||
|
|
||||||
<fieldset style="display: inline; border-color: lightgrey; width: 20%; margin-bottom: 2px; margin-right: 0px; margin-left: 0px; padding-bottom: 1px; padding-top: 1px;">
|
<fieldset style="display: inline; border-color: lightgrey; width: 22.8%; margin-bottom: 2px; margin-right: 0px; margin-left: 0px; padding-bottom: 1px; padding-top: 1px; padding-left: 2px; padding-right: 2px;">
|
||||||
|
|
||||||
@Html.DisplayFor(m => m.SeasonString)
|
@Html.DisplayFor(m => m.SeasonString)
|
||||||
<span style="float: right;">@Html.CheckBoxFor(m => m.Monitored, new { @class = "chkbox" })</span>
|
<span style="float: right;">@Html.CheckBoxFor(m => m.Monitored, new { @class = "chkbox" })</span>
|
||||||
@ -15,5 +15,4 @@
|
|||||||
@Html.HiddenFor(m => m.SeasonNumber)
|
@Html.HiddenFor(m => m.SeasonNumber)
|
||||||
@Html.Hidden(idClean, new { @class = "cleanId", })
|
@Html.Hidden(idClean, new { @class = "cleanId", })
|
||||||
</fieldset>
|
</fieldset>
|
||||||
}
|
}
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user