Fix: don't show incompatible message if theres no localstorage config

This commit is contained in:
Tyron Madlener 2011-08-11 17:20:40 +03:00
parent df0eca21e3
commit ca94b919ac

View File

@ -843,7 +843,7 @@ $(function() {
$('a[href="#clearMonitorConfig"]').toggle(runtime.charts != null);
}
if (window.localStorage && monitorProtocolVersion != window.localStorage['monitorVersion']) {
if (window.localStorage && window.localStorage['monitorCharts'] && monitorProtocolVersion != window.localStorage['monitorVersion']) {
$('div#emptyDialog').attr('title',PMA_messages['strIncompatibleMonitorConfig']);
$('div#emptyDialog').html(PMA_messages['strIncompatibleMonitorConfigDescription']);