From 682d422b044175e61438e4420c3bfade00f8eaa7 Mon Sep 17 00:00:00 2001 From: Denis Shakhov Date: Sun, 8 May 2011 13:57:18 +0000 Subject: [PATCH] [developer-jquery] fix notifier --- .../developer-jquery/css/jquery.notifier.css | 23 ++++++++----------- .../js/libs/jquery.notifier.js | 7 +++--- 2 files changed, 13 insertions(+), 17 deletions(-) diff --git a/templates/skin/developer-jquery/css/jquery.notifier.css b/templates/skin/developer-jquery/css/jquery.notifier.css index 523999b8..a5afa251 100644 --- a/templates/skin/developer-jquery/css/jquery.notifier.css +++ b/templates/skin/developer-jquery/css/jquery.notifier.css @@ -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; } \ No newline at end of file diff --git a/templates/skin/developer-jquery/js/libs/jquery.notifier.js b/templates/skin/developer-jquery/js/libs/jquery.notifier.js index c96704a7..a9349651 100644 --- a/templates/skin/developer-jquery/js/libs/jquery.notifier.js +++ b/templates/skin/developer-jquery/js/libs/jquery.notifier.js @@ -46,8 +46,7 @@ box: function(notice){ - var box = $("
"); - box.append($("")); + var box = $("
"); if (notice.ttl != null) box.append($("

").append(notice.ttl)); box.append($("

").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); } )