1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-03 06:55:03 +03:00

[developer-jquery] fix notifier

This commit is contained in:
Denis Shakhov 2011-05-08 13:57:18 +00:00
parent 2dd40f053e
commit 682d422b04
2 changed files with 13 additions and 17 deletions

View file

@ -7,6 +7,10 @@
font-size: 12px;
z-index: 9999;
/* IE 6 Fix */
_position: absolute;
_top: expression( eval(document.documentElement.scrollBottom) + 10 +"px" );
}
#notifier .n-box {
@ -17,22 +21,15 @@
color: #fff;
background: #000;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
cursor: pointer;
}
#notifier .n-box h3 { color: #fff; font-size: 14px; font-weight: bold; margin-bottom: 3px; }
#notifier .n-box p { margin: 0; }
#notifier .n-box .n-close {
display: none;
width: 10px;
height: 10px;
position: absolute;
top: 5px;
right: 5px;
background: #ff0;
cursor: pointer;
}
#notifier .n-box.n-notice { background: rgb(255, 241, 168); color: #333; }
#notifier .n-box.n-notice { background: #FFF1A8; color: #333; }
#notifier .n-box.n-error { background: #000; color: #fff; opacity: 0.8; }

View file

@ -46,8 +46,7 @@
box: function(notice){
var box = $("<div id=\"" + notice.id + "\" class=\"" + this.options.box_class + "\"></div>");
box.append($("<span class=\"" + this.options.close_class + "\"></span>"));
var box = $("<div id=\"" + notice.id + "\" class=\"" + this.options.box_class + "\"></div>");
if (notice.ttl != null) box.append($("<h3></h3>").append(notice.ttl));
box.append($("<p></p>").append(notice.msg));
box.hide().show();
@ -58,10 +57,10 @@
events: function(box, seed){
$(box).children("span").bind(
$(box).bind(
'click',
function(){
var seed = $(this).parent().attr("id");
var seed = $(this).attr("id");
$.notifier.destroy(seed, true);
}
)