If user is sharing their location (based on profile setting), then
enable it for form notice by default. This can be overriden by the cookie to preserve states.
This commit is contained in:
parent
4efa841ba3
commit
c986f59143
@ -208,7 +208,7 @@ class NoticeForm extends Form
|
||||
$this->out->hidden('notice_data-location_ns', empty($this->profile->location_ns) ? null : $this->profile->location_ns, 'location_ns');
|
||||
|
||||
$this->out->elementStart('div',array('id' => 'notice_data-location_enabled_container', 'data-geocode-url' => common_local_url('geocode')));
|
||||
$this->out->checkbox('notice_data-location_enabled',_('Share your location'));
|
||||
$this->out->checkbox('notice_data-location_enabled', _('Share your location'), true);
|
||||
$this->out->element('a', array('style' => 'display: none', 'target' => '_blank', 'id' => 'notice_data-location_name'), _('Finding your location...'));
|
||||
$this->out->elementEnd('div');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user