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:
Andre Lorbach 2015-02-20 12:12:18 +01:00
parent 356d747025
commit 9a76f95978
2 changed files with 17 additions and 3 deletions

View File

@ -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'] = "";

View File

@ -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);
}
}