summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@status.net>2010-01-03 01:02:32 +0000
committerSarven Capadisli <csarven@status.net>2010-01-03 01:02:32 +0000
commit503d0acd49a855ba8853539448a0d6c11e2ca42a (patch)
treee8e1af7257229c95bac9493ab917bd5339f3913a /js
parentec5850d26a46b88c14579959c8bcf34e936b087e (diff)
Added minimize functionality to selected location container
Diffstat (limited to 'js')
-rw-r--r--js/util.js10
1 files changed, 9 insertions, 1 deletions
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 = '<div id="'+SN.C.S.NoticeDataGeoSelected+'" class="'+SN.C.S.Success+'"><button class="close">&#215;</button></div>';
+ var S = '<div id="'+SN.C.S.NoticeDataGeoSelected+'" class="'+SN.C.S.Success+'"> <button class="minimize">&#95;</button> <button class="close">&#215;</button></div>';
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) {