1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

fixes #489 - Warn when selecting 'Dev' update level

This commit is contained in:
Luke Pulverenti 2013-09-04 14:26:32 -04:00
parent 647c0272a2
commit 4e205c8bec
4 changed files with 40 additions and 1 deletions

View file

@ -22,6 +22,9 @@
<option value="Beta">Beta</option>
<option value="Dev">Dev (Unstable)</option>
</select>
<div id="devBuildWarning" class="fieldDescription warningFieldDescription" style="display: none;">
Dev builds are the bleeding edge. Released often, these build have not been tested. The application may crash and entire features may not work at all.
</div>
</li>
<li>
<label for="txtPortNumber">Http server port number: </label>

View file

@ -221,6 +221,19 @@ form, .readOnlyContent {
padding-left: 5px;
}
.warningFieldDescription {
padding: 5px;
border: 1px solid #f4c63f;
background: #fadb4e;
background-image: -webkit-gradient(linear,left top,left bottom,from(#ffefaa),to(#ffe155));
background-image: -webkit-linear-gradient(#ffefaa,#ffe155);
background-image: -moz-linear-gradient(#ffefaa,#ffe155);
background-image: -ms-linear-gradient(#ffefaa,#ffe155);
background-image: -o-linear-gradient(#ffefaa,#ffe155);
background-image: linear-gradient(#ffefaa,#ffe155);
border-radius: 5px;
}
.ulForm {
margin-bottom: 20px!important;
}

View file

@ -26,6 +26,14 @@
</thead>
<tbody id="tbodyPluginUpdates"></tbody>
</table>
<br />
<br />
<div class="fieldDescription warningFieldDescription">
Dev builds are the bleeding edge. Released often, these build have not been tested. The application may crash and entire features may not work at all.
</div>
</form>
</div>
</div>

View file

@ -9,7 +9,7 @@
$('#fldWebSocketPortNumber', page).show();
}
$('#selectAutomaticUpdateLevel', page).val(config.SystemUpdateLevel).selectmenu('refresh');
$('#selectAutomaticUpdateLevel', page).val(config.SystemUpdateLevel).selectmenu('refresh').trigger('change');
$('#txtWebSocketPortNumber', page).val(config.LegacyWebSocketPortNumber);
$('#txtPortNumber', page).val(config.HttpServerPortNumber);
@ -36,6 +36,21 @@
loadPage(page, response1[0], response2[0]);
});
}).on('pageinit', "#advancedConfigurationPage", function () {
var page = this;
$('#selectAutomaticUpdateLevel', page).on('change', function () {
if (this.value == "Dev") {
$('#devBuildWarning', page).show();
} else {
$('#devBuildWarning', page).hide();
}
});
});
function advancedConfigurationPage() {