Added minimize functionality to selected location container
This commit is contained in:
parent
ec5850d26a
commit
503d0acd49
10
js/util.js
10
js/util.js
@ -446,7 +446,7 @@ var SN = { // StatusNet
|
|||||||
var NLE = $('#notice_data-location_wrap');
|
var NLE = $('#notice_data-location_wrap');
|
||||||
var geocodeURL = NLE.attr('title');
|
var geocodeURL = NLE.attr('title');
|
||||||
|
|
||||||
var S = '<div id="'+SN.C.S.NoticeDataGeoSelected+'" class="'+SN.C.S.Success+'"><button class="close">×</button></div>';
|
var S = '<div id="'+SN.C.S.NoticeDataGeoSelected+'" class="'+SN.C.S.Success+'"> <button class="minimize">_</button> <button class="close">×</button></div>';
|
||||||
var NDGS = $('#'+SN.C.S.NoticeDataGeoSelected);
|
var NDGS = $('#'+SN.C.S.NoticeDataGeoSelected);
|
||||||
|
|
||||||
if (NDGS.length > 0) {
|
if (NDGS.length > 0) {
|
||||||
@ -460,6 +460,14 @@ var SN = { // StatusNet
|
|||||||
$('#'+SN.C.S.NoticeDataGeoSelected+' button.close').click(function(){
|
$('#'+SN.C.S.NoticeDataGeoSelected+' button.close').click(function(){
|
||||||
$('#'+SN.C.S.NoticeDataGeoSelected).remove();
|
$('#'+SN.C.S.NoticeDataGeoSelected).remove();
|
||||||
$('#'+SN.C.S.NoticeDataGeo).attr('checked', false);
|
$('#'+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) {
|
if (navigator.geolocation) {
|
||||||
|
@ -557,10 +557,11 @@ line-height:1.618;
|
|||||||
.form_notice #notice_data-attach_selected code,
|
.form_notice #notice_data-attach_selected code,
|
||||||
.form_notice #notice_data-location_name {
|
.form_notice #notice_data-location_name {
|
||||||
float:left;
|
float:left;
|
||||||
width:87%;
|
width:80%;
|
||||||
display:block;
|
display:block;
|
||||||
line-height:1.8;
|
line-height:1.8;
|
||||||
overflow:auto;
|
overflow:auto;
|
||||||
|
margin-right:2.5%;
|
||||||
}
|
}
|
||||||
.form_notice #notice_data-attach_selected code {
|
.form_notice #notice_data-attach_selected code {
|
||||||
font-size:1.1em;
|
font-size:1.1em;
|
||||||
@ -570,6 +571,10 @@ font-size:1.1em;
|
|||||||
float:right;
|
float:right;
|
||||||
font-size:0.8em;
|
font-size:0.8em;
|
||||||
}
|
}
|
||||||
|
,
|
||||||
|
.form_notice #notice_data-geo_selected button.minimize {
|
||||||
|
float:left;
|
||||||
|
}
|
||||||
|
|
||||||
.form_notice #notice_data-location_wrap label {
|
.form_notice #notice_data-location_wrap label {
|
||||||
position:absolute;
|
position:absolute;
|
||||||
@ -595,7 +600,8 @@ display:block;
|
|||||||
padding-left:21px;
|
padding-left:21px;
|
||||||
}
|
}
|
||||||
|
|
||||||
button.close {
|
button.close,
|
||||||
|
button.minimize {
|
||||||
width:16px;
|
width:16px;
|
||||||
height:16px;
|
height:16px;
|
||||||
text-indent:-9999px;
|
text-indent:-9999px;
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 3.5 KiB |
@ -192,7 +192,8 @@ button.close,
|
|||||||
.entity_delete input.submit,
|
.entity_delete input.submit,
|
||||||
.notice-options .repeated,
|
.notice-options .repeated,
|
||||||
.form_notice a#notice_data-location_name,
|
.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-image:url(../../base/images/icons/icons-01.gif);
|
||||||
background-repeat:no-repeat;
|
background-repeat:no-repeat;
|
||||||
background-color:transparent;
|
background-color:transparent;
|
||||||
@ -253,6 +254,9 @@ background-color:#EFF3DC;
|
|||||||
button.close {
|
button.close {
|
||||||
background-position:0 -1120px;
|
background-position:0 -1120px;
|
||||||
}
|
}
|
||||||
|
button.minimize {
|
||||||
|
background-position:0 -1912px;
|
||||||
|
}
|
||||||
|
|
||||||
#anon_notice {
|
#anon_notice {
|
||||||
background-color:#87B4C8;
|
background-color:#87B4C8;
|
||||||
|
Loading…
Reference in New Issue
Block a user