mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-30 19:40:08 -07:00
Fix buggy behaviour if user sets friendly name as blank.
Hide "clear logs" button when viewing PMS logs (it has no impact on those). Start major clean up of classes. Initial work to allow SSL communication to Plex servers.
This commit is contained in:
parent
6ecfb9c963
commit
e1e3659eb3
6 changed files with 202 additions and 242 deletions
|
@ -47,7 +47,9 @@ DOCUMENTATION :: END
|
|||
async: true,
|
||||
success: function(data) {
|
||||
$("#edit-user-status-message").html(data);
|
||||
$(".set-username").html(friendly_name);
|
||||
if ($.trim(friendly_name) !== '') {
|
||||
$(".set-username").html(friendly_name);
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
|
@ -22,7 +22,7 @@ from plexpy import helpers
|
|||
<div class="dashboard-wellheader-no-chevron">
|
||||
<div class="span9"><h2><i class="fa fa-book"></i> Logs</h2></div>
|
||||
<div class="span3">
|
||||
<div class="pull-right">
|
||||
<div class="pull-right" id="clear-logs">
|
||||
<h5><a id="menu_link_edit" href="clearLogs"><i class="fa fa-trash-o"></i> Clear log</a></h5>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -118,11 +118,12 @@ from plexpy import helpers
|
|||
}
|
||||
|
||||
$("#plexpy-logs-btn").click(function() {
|
||||
$("#clear-logs").show();
|
||||
LoadPlexPyLogs();
|
||||
});
|
||||
|
||||
$("#plex-logs-btn").click(function() {
|
||||
console.log('clicked da button');
|
||||
$("#clear-logs").hide();
|
||||
LoadPlexLogs();
|
||||
});
|
||||
|
||||
|
|
|
@ -325,7 +325,7 @@ from plexpy import helpers
|
|||
// Load edit user modal
|
||||
$("#toggle-edit-user-modal").click(function() {
|
||||
$.ajax({
|
||||
url: 'edit_user',
|
||||
url: 'edit_user_dialog',
|
||||
data: {user: '${data['username']}'},
|
||||
cache: false,
|
||||
async: true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue