Remove input geo data as well

This commit is contained in:
Sarven Capadisli 2010-01-05 00:37:53 +00:00
parent 9fadfd850e
commit db1a7d6f88
1 changed files with 2 additions and 0 deletions

View File

@ -484,6 +484,7 @@ var SN = { // StatusNet
}); });
}); });
} }
var NDG = $('#'+SN.C.S.NoticeDataGeo); var NDG = $('#'+SN.C.S.NoticeDataGeo);
if (NDG.length > 0) { if (NDG.length > 0) {
var NLE = $('#notice_data-location_wrap'); var NLE = $('#notice_data-location_wrap');
@ -567,6 +568,7 @@ var SN = { // StatusNet
} }
else { else {
removeNoticeDataGeo(); removeNoticeDataGeo();
$('#'+SN.C.S.NoticeDataGeo).remove();
$('label[for='+SN.C.S.NoticeDataGeo+']').remove(); $('label[for='+SN.C.S.NoticeDataGeo+']').remove();
} }
} }