Format geoip error messages

This commit is contained in:
JonnyWong16 2016-07-01 09:30:31 -07:00
parent 1df6dadbdd
commit f5ba168172
5 changed files with 13 additions and 6 deletions

View file

@ -102,7 +102,8 @@ DOCUMENTATION :: END
$(document).ready(function () {
$("#install_geoip_db, #reinstall_geoip_db").click(function () {
var msg = 'Are you sure you want to install the GeoLite2 database?<br /><br />' +
'The database uses ~65MB in your PlexPy directory.';
'The database is used to lookup IP address geolocation info.<br/>' +
'The database uses <strong>~65MB</strong> in your PlexPy directory.';
var url = 'install_geoip_db';
confirmAjaxCall(url, msg, 'Installing GeoLite2 database.', getConfigurationTable);
});

View file

@ -3005,6 +3005,8 @@ a:hover .overlay-refresh-image {
a:hover .overlay-refresh-image:hover {
opacity: .9;
}
#ip_error a {
color: #e9a049;
#ip_error {
color: #aaa;
display: none;
text-align: center;
}

View file

@ -13,7 +13,7 @@
</h4>
</div>
<div class="modal-body" id="modal-text">
<div id="ip_error" style="display: none; text-align: center;"></div>
<div id="ip_error" class="text-muted"></div>
<div class="col-sm-12">
<h4><strong>Location Details</strong></h4>
</div>

View file

@ -2067,6 +2067,8 @@
$("#plexpy-configuration-table").html(xhr.responseText);
if ("${kwargs.get('install_geoip')}" == 'true') {
$('#install_geoip_db').removeClass('no-highlight').css('color','#e9a049');
} else if ("${kwargs.get('reinstall_geoip')}" == 'true') {
$('#reinstall_geoip_db').removeClass('no-highlight').css('color','#e9a049');
}
}
});