mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-20 05:13:21 -07:00
Automatically show HTTP root in Public Tautulli Domain input box
This commit is contained in:
parent
4bb49f9836
commit
322c090d8a
1 changed files with 16 additions and 0 deletions
|
@ -2001,6 +2001,7 @@ Rating: {rating}/10 --> Rating: /10
|
|||
<script src="${http_root}js/parsley.min.js"></script>
|
||||
<script src="${http_root}js/Sortable.min.js"></script>
|
||||
<script src="${http_root}js/moment-with-locale.js"></script>
|
||||
<script src="${http_root}js/jquery.inputaffix.min.js"></script>
|
||||
<script src="${http_root}js/jquery.qrcode.min.js"></script>
|
||||
<script>
|
||||
function getConfigurationTable() {
|
||||
|
@ -2179,6 +2180,7 @@ $(document).ready(function() {
|
|||
|
||||
function preSaveChecks(_callback) {
|
||||
verifyPMSWebURL();
|
||||
setBaseURLSuffix(true);
|
||||
if (serverChanged) {
|
||||
verifyServer(_callback);
|
||||
} else if (typeof _callback === "function") {
|
||||
|
@ -2198,6 +2200,7 @@ $(document).ready(function() {
|
|||
getNewslettersTable();
|
||||
getMobileDevicesTable();
|
||||
loadUpdateDistros();
|
||||
setBaseURLSuffix();
|
||||
settingsChanged = false;
|
||||
}
|
||||
|
||||
|
@ -2913,6 +2916,19 @@ $(document).ready(function() {
|
|||
$(this).val($(this).val().replace(/\/*$/, ''));
|
||||
});
|
||||
|
||||
$('#http_root').change(function() {
|
||||
setBaseURLSuffix();
|
||||
});
|
||||
|
||||
function setBaseURLSuffix(clear) {
|
||||
if (clear){
|
||||
$('#http_base_url').suffix("");
|
||||
} else {
|
||||
$('#http_base_url').suffix($('#http_root').val());
|
||||
}
|
||||
}
|
||||
setBaseURLSuffix();
|
||||
|
||||
function apiEnabled() {
|
||||
var api_enabled = $('#api_enabled').prop('checked');
|
||||
$('#app_api_msg').toggle(!(api_enabled));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue