forked from GNUsocial/gnu-social
json_encode strings put out as javascript
This commit is contained in:
parent
617a994550
commit
ffd688b8ef
@ -212,8 +212,8 @@ class NoticeForm extends Form
|
|||||||
$this->out->checkbox('notice_data-geo', _('Share my location'), true);
|
$this->out->checkbox('notice_data-geo', _('Share my location'), true);
|
||||||
$this->out->elementEnd('div');
|
$this->out->elementEnd('div');
|
||||||
$this->out->inlineScript(' var NoticeDataGeo_text = {'.
|
$this->out->inlineScript(' var NoticeDataGeo_text = {'.
|
||||||
'ShareDisable: "'._('Do not share my location').'",'.
|
'ShareDisable: ' .json_encode(_('Do not share my location')).','.
|
||||||
'ErrorTimeout: "'._('Sorry, retrieving your geo location is taking longer than expected, please try again later').'"'.
|
'ErrorTimeout: ' .json_encode(_('Sorry, retrieving your geo location is taking longer than expected, please try again later')).
|
||||||
'}');
|
'}');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user