diff options
Diffstat (limited to 'view/admin_aside.tpl')
-rw-r--r-- | view/admin_aside.tpl | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/view/admin_aside.tpl b/view/admin_aside.tpl index dd81a6fee..ade0c473b 100644 --- a/view/admin_aside.tpl +++ b/view/admin_aside.tpl @@ -1,7 +1,20 @@ +<script> + // update pending count // + $(function(){ + + $("nav").bind('nav-update', function(e,data){ + var elm = $('#pending-update'); + var register = $(data).find('register').text(); + if (register=="0") { reigster=""; elm.hide();} else { elm.show(); } + elm.html(register); + console.log(elm, data, register); + }); + }); +</script> <h4><a href="$admurl">Admin</a></h4> <ul> <li class='admin link $admin.site.2'><a href='$admin.site.0'>$admin.site.1</a></li> - <li class='admin link $admin.users.2'><a href='$admin.users.0'>$admin.users.1</a></li> + <li class='admin link $admin.users.2'><a href='$admin.users.0'>$admin.users.1</a><span id='pending-update' title='$h_pending'></span></li> <li class='admin link $admin.plugins.2'><a href='$admin.plugins.0'>$admin.plugins.1</a></li> </ul> |