mirror of
https://github.com/rsyslog/loganalyzer.git
synced 2025-09-26 11:19:26 +02:00
Added workaround for report admin panel and MSIE8 problems
This fixes bugid #320, the admin panel did not properly work because MSIE8 handles "button" tags wrong.
This commit is contained in:
parent
356d747025
commit
9a76f95978
@ -72,6 +72,20 @@ if ( !isset($_SESSION['SESSION_ISREADONLY']) || $_SESSION['SESSION_ISREADONLY']
|
||||
}
|
||||
// ---
|
||||
|
||||
// --- FIX MSIE8 Button Values
|
||||
if (isset($_POST['op']))
|
||||
{
|
||||
if (strpos($_POST['op'], $content['LN_REPORTS_ADDSAVEDREPORTANDRETURN']) !== false )
|
||||
$_POST['op'] = "addsavedreport_return";
|
||||
else if (strpos($_POST['op'], $content['LN_REPORTS_EDITSAVEDREPORTANDRETURN']) !== false )
|
||||
$_POST['op'] = "editsavedreport_return";
|
||||
else if (strpos($_POST['op'], $content['LN_REPORTS_ADDSAVEDREPORT']) !== false )
|
||||
$_POST['op'] = "addsavedreport";
|
||||
else if (strpos($_POST['op'], $content['LN_REPORTS_EDITSAVEDREPORT']) !== false )
|
||||
$_POST['op'] = "editsavedreport";
|
||||
}
|
||||
// ---
|
||||
|
||||
// --- BEGIN Custom Code
|
||||
$content['OPTIONAL_TITLE'] = "";
|
||||
|
||||
|
@ -222,17 +222,17 @@
|
||||
if (myform.elements['outputTarget'].value == REPORT_TARGET_STDOUT)
|
||||
{
|
||||
hidevisibility('HiddenOutputFormatFile');
|
||||
toggleformelement('outputFormat_filename', false);
|
||||
toggleformelement('HiddenOutputFormatFile', false);
|
||||
}
|
||||
else if (myform.elements['outputTarget'].value == REPORT_TARGET_FILE)
|
||||
{
|
||||
togglevisibility('HiddenOutputFormatFile');
|
||||
toggleformelement('outputFormat_filename', true);
|
||||
toggleformelement('HiddenOutputFormatFile', true);
|
||||
}
|
||||
else if (myform.elements['outputTarget'].value == REPORT_TARGET_EMAIL)
|
||||
{
|
||||
hidevisibility('HiddenOutputFormatFile');
|
||||
toggleformelement('outputFormat_filename', false);
|
||||
toggleformelement('HiddenOutputFormatFile', false);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user