From 503d0acd49a855ba8853539448a0d6c11e2ca42a Mon Sep 17 00:00:00 2001 From: Sarven Capadisli Date: Sun, 3 Jan 2010 01:02:32 +0000 Subject: Added minimize functionality to selected location container --- js/util.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'js') diff --git a/js/util.js b/js/util.js index 8ee0dd05d..7354a24ca 100644 --- a/js/util.js +++ b/js/util.js @@ -446,7 +446,7 @@ var SN = { // StatusNet var NLE = $('#notice_data-location_wrap'); var geocodeURL = NLE.attr('title'); - var S = '
'; + var S = '
'; var NDGS = $('#'+SN.C.S.NoticeDataGeoSelected); if (NDGS.length > 0) { @@ -460,6 +460,14 @@ var SN = { // StatusNet $('#'+SN.C.S.NoticeDataGeoSelected+' button.close').click(function(){ $('#'+SN.C.S.NoticeDataGeoSelected).remove(); $('#'+SN.C.S.NoticeDataGeo).attr('checked', false); + + return false; + }); + + $('#'+SN.C.S.NoticeDataGeoSelected+' button.minimize').click(function(){ + $('#'+SN.C.S.NoticeDataGeoSelected).hide(); + + return false; }); if (navigator.geolocation) { -- cgit v1.2.3-54-g00ecf