Little image instead of "X" to close popup

This commit is contained in:
Xavier Guimard 2010-10-24 17:42:08 +00:00
parent 0401ff1f42
commit 8909dfb0c1
4 changed files with 6 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 661 B

View File

@ -286,6 +286,7 @@ div.category ul {
border-top: solid 20px #f00;
padding: 5px 20px;
display:none;
cursor:move;
}
.closepopup{
position:absolute;

View File

@ -1204,8 +1204,8 @@ jQuery.fn.center = function () {
var v=Math.max($(window).height()-this.height(),200)/2+$(window).scrollTop();
var h=Math.max($(window).width()-this.width(),200 )/2+$(window).scrollLeft();
this.css("top",h+"px");
this.css("bottom",h+"px");
this.height($(window).height()-2*h-15);
this.css("left",v+"px");
this.css("right",v+"px");
this.width($(window).width()-2*v-15);
return this;
}

View File

@ -42,7 +42,9 @@
<!-- Popup -->
<div id="dragpopup" class="dragpopup ui-corner-all">
<div class="closepopup">
<span onclick="$('#dragpopup').hide();">X</span>
<span onclick="$('#dragpopup').hide();">
<img src="<TMPL_VAR NAME="DIR">/close_window.png"/>
</span>
</div>
<div id="textpopup"></div>
</div>