Moved JavaScript dependant stuff out of noticeform.

This commit is contained in:
Sarven Capadisli
2009-12-31 18:08:21 +00:00
parent e84bf0aa98
commit dde6415a6a
2 changed files with 24 additions and 9 deletions

View File

@@ -207,9 +207,9 @@ class NoticeForm extends Form
$this->out->hidden('notice_data-location_id', empty($this->location_id) ? (empty($this->profile->location_id) ? null : $this->profile->location_id) : $this->location_id, 'location_id');
$this->out->hidden('notice_data-location_ns', empty($this->location_ns) ? (empty($this->profile->location_ns) ? null : $this->profile->location_ns) : $this->location_ns, 'location_ns');
$this->out->elementStart('div',array('id' => 'notice_data-location_enabled_container', 'data-geocode-url' => common_local_url('geocode')));
$this->out->elementStart('div', array('id' => 'notice_data-location_wrap',
'title' => common_local_url('geocode')));
$this->out->checkbox('notice_data-location_enabled', _('Share your location'), true);
$this->out->element('a', array('id' => 'notice_data-location_name'), _('Finding your location...'));
$this->out->elementEnd('div');
}