]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/noticeform.php
Using a JSON object for NoticeDataGeo text instead
[quix0rs-gnu-social.git] / lib / noticeform.php
index 02e35a8d79bd50d16e26d6a7806499ca011c31db..41504b7356b4cfcc6f3f56f28806aa1d21176c76 100644 (file)
@@ -211,8 +211,10 @@ class NoticeForm extends Form
                                                       'title' => common_local_url('geocode')));
                 $this->out->checkbox('notice_data-geo', _('Share my location'), true);
                 $this->out->elementEnd('div');
-                $this->out->inlineScript(' var NoticeDataGeoShareDisable_text = "'._('Do not share my location').'";'.
-                ' var NoticeDataGeoInfoMinimize_text = "'._('Hide this info').'";');
+                $this->out->inlineScript(' var NoticeDataGeo_text = {'.
+                    'ShareDisable: "'._('Do not share my location').'",'.
+                    'InfoMinimize: "'._('Hide this info').'"'.
+                    '}');
             }
 
             Event::handle('EndShowNoticeFormData', array($this));