use a data attribute instead of 'title' for geo lookup api; fixes failure of cloned forms to work
This commit is contained in:
parent
e43ee373ae
commit
874804a0c4
|
@ -1017,8 +1017,7 @@ var SN = { // StatusNet
|
||||||
}
|
}
|
||||||
|
|
||||||
var NGW = form.find('.notice_data-geo_wrap');
|
var NGW = form.find('.notice_data-geo_wrap');
|
||||||
var geocodeURL = NGW.attr('title');
|
var geocodeURL = NGW.attr('data-api');
|
||||||
NGW.removeAttr('title');
|
|
||||||
|
|
||||||
label
|
label
|
||||||
.attr('title', label.text());
|
.attr('title', label.text());
|
||||||
|
|
2
js/util.min.js
vendored
2
js/util.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -208,7 +208,7 @@ class NoticeForm extends Form
|
||||||
$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->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('class' => 'notice_data-geo_wrap',
|
$this->out->elementStart('div', array('class' => 'notice_data-geo_wrap',
|
||||||
'title' => common_local_url('geocode')));
|
'data-api' => common_local_url('geocode')));
|
||||||
|
|
||||||
// @fixme checkbox method allows no way to change the id without changing the name
|
// @fixme checkbox method allows no way to change the id without changing the name
|
||||||
//$this->out->checkbox('notice_data-geo', _('Share my location'), true);
|
//$this->out->checkbox('notice_data-geo', _('Share my location'), true);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user