fixed bug of notifications
This commit is contained in:
parent
53129bb4b5
commit
2a49110f7f
|
@ -22,12 +22,12 @@ $(document).ready(function(){
|
||||||
$('#addNoteModal').modal('show');
|
$('#addNoteModal').modal('show');
|
||||||
});
|
});
|
||||||
|
|
||||||
if ($('#message').html()==''){
|
if ($('#actlMsg').html()==' <button id="btnMessage" class="btn btn-default">OK</button>'){
|
||||||
$('.notification').addClass('hidden');
|
$('.notification').addClass('hidden');
|
||||||
} else {
|
} else {
|
||||||
$('.notification').fadeOut(9000);
|
$('.notification').fadeOut(9000);
|
||||||
}
|
}
|
||||||
$('.notification-close').click(function(){$('.notification').fadeOut("slow")})
|
$('.btnMessage').click(function(){$('.notification').fadeOut()})
|
||||||
|
|
||||||
/*$( document ).keypress(
|
/*$( document ).keypress(
|
||||||
function(event){
|
function(event){
|
||||||
|
|
|
@ -43,7 +43,7 @@
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<!-- The navigation bar-->
|
<!-- The navigation bar-->
|
||||||
<div class="notification hidden" {{if eq .Message ""}} class="hidden" {{end}}><span id="message"><p>{{.Message}} <button id="btnMessage" class="btn btn-default">OK</button></p> </span> </div>
|
<div class="notification" {{if eq .Message ""}} class="hidden" {{end}}><span id="message"><p id="actlMsg">{{.Message}} <button id="btnMessage" class="btn btn-default">OK</button></p> </span> </div>
|
||||||
<nav class="navbar navbar-default navbar-fixed-top mainHeader">
|
<nav class="navbar navbar-default navbar-fixed-top mainHeader">
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<div class="navbar-header">
|
<div class="navbar-header">
|
||||||
|
@ -116,7 +116,8 @@
|
||||||
|
|
||||||
{{ range $index, $cat := .Categories }}
|
{{ range $index, $cat := .Categories }}
|
||||||
<li class="sidebar-item">
|
<li class="sidebar-item">
|
||||||
<a href="/category/{{$cat.Name}}" {{ if eq $cat.Name $nav }} class="active" {{end}}> <span class="glyphicon glyphicon-stop"></span> <span class="nav-item"> {{$cat.Name}}</span> <span class="badge pull-right">{{$cat.Count}}</span></a>
|
<a href="/category/{{$cat.Name}}" {{ if eq $cat.Name $nav }} class="active" {{end}}>
|
||||||
|
<span class="nav-item"> {{$cat.Name}}</span> <span class="badge pull-right">{{$cat.Count}}</span></a>
|
||||||
</li>
|
</li>
|
||||||
{{end}}
|
{{end}}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
Loading…
Reference in New Issue