mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +01:00
fix Array has no method match, if egw_framework::message() is called in GET request
This commit is contained in:
parent
e30adcba12
commit
d28583a3a4
@ -230,7 +230,8 @@
|
|||||||
// display a message
|
// display a message
|
||||||
if (egw_script.getAttribute('data-message'))
|
if (egw_script.getAttribute('data-message'))
|
||||||
{
|
{
|
||||||
egw(window).message(JSON.parse(egw_script.getAttribute('data-message')));
|
var params = JSON.parse(egw_script.getAttribute('data-message')) || [''];
|
||||||
|
egw(window).message.apply(egw(window), params);
|
||||||
}
|
}
|
||||||
// hide location bar for mobile browsers
|
// hide location bar for mobile browsers
|
||||||
if (egw_script.getAttribute('data-mobile'))
|
if (egw_script.getAttribute('data-mobile'))
|
||||||
|
Loading…
Reference in New Issue
Block a user