Reusable notice form fixes for geolocation

This commit is contained in:
Brion Vibber
2011-03-04 14:27:55 -08:00
parent 9689bda21c
commit 5358f78e82
11 changed files with 44 additions and 29 deletions

View File

@@ -990,7 +990,7 @@ var SN = { // StatusNet
var NLN = ''; // @fixme
var NDGe = form.find('[name=notice_data-geo]');
var check = form.find('[name=notice_data-geo]');
var label = $('label[for='+check.attr('id')+']');
var label = form.find('label.notice_data-geo');
function removeNoticeDataGeo(error) {
label
@@ -1164,7 +1164,6 @@ var SN = { // StatusNet
*/
NoticeGeoStatus: function(form, status, lat, lon, url)
{
var form = $('#form_notice');
var wrapper = form.find('.geo_status_wrapper');
if (wrapper.length == 0) {
wrapper = $('<div class="'+SN.C.S.Success+' geo_status_wrapper"><button class="close" style="float:right">&#215;</button><div class="geo_status"></div></div>');