]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Added minimize functionality to selected location container
authorSarven Capadisli <csarven@status.net>
Sun, 3 Jan 2010 01:02:32 +0000 (01:02 +0000)
committerSarven Capadisli <csarven@status.net>
Sun, 3 Jan 2010 01:02:32 +0000 (01:02 +0000)
js/util.js
theme/base/css/display.css
theme/base/images/icons/icons-01.gif
theme/identica/css/display.css

index 8ee0dd05db70af1197d2c99509d2a0975b4983d1..7354a24ca5b5a9f723d779e408417eb789168879 100644 (file)
@@ -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) {
index fc8762cdc2001a7610fc832d5c59d72f97609aba..0bb3479ccd431866c776659be4ffde286f43f541 100644 (file)
@@ -557,10 +557,11 @@ line-height:1.618;
 .form_notice #notice_data-attach_selected code,
 .form_notice #notice_data-location_name {
 float:left;
-width:87%;
+width:80%;
 display:block;
 line-height:1.8;
 overflow:auto;
+margin-right:2.5%;
 }
 .form_notice #notice_data-attach_selected code {
 font-size:1.1em;
@@ -570,6 +571,10 @@ font-size:1.1em;
 float:right;
 font-size:0.8em;
 }
+,
+.form_notice #notice_data-geo_selected button.minimize {
+float:left;
+}
 
 .form_notice #notice_data-location_wrap label {
 position:absolute;
@@ -595,7 +600,8 @@ display:block;
 padding-left:21px;
 }
 
-button.close {
+button.close,
+button.minimize {
 width:16px;
 height:16px;
 text-indent:-9999px;
index 03db8c09c8ed58075bffaccf247232ab181ee668..fccc35b8457c64295f17a9fe780364923e478a4a 100644 (file)
Binary files a/theme/base/images/icons/icons-01.gif and b/theme/base/images/icons/icons-01.gif differ
index a47837387034248569c022d77d26aabd35c26755..e7da3612a3ef890fc1b183ca77b9b84e6f29bb49 100644 (file)
@@ -192,7 +192,8 @@ button.close,
 .entity_delete input.submit,
 .notice-options .repeated,
 .form_notice a#notice_data-location_name,
-.form_notice label[for=notice_data-geo] {
+.form_notice label[for=notice_data-geo],
+button.minimize {
 background-image:url(../../base/images/icons/icons-01.gif);
 background-repeat:no-repeat;
 background-color:transparent;
@@ -253,6 +254,9 @@ background-color:#EFF3DC;
 button.close {
 background-position:0 -1120px;
 }
+button.minimize {
+background-position:0 -1912px;
+}
 
 #anon_notice {
 background-color:#87B4C8;