Skip to content

Commit

Permalink
fix alert css class
Browse files Browse the repository at this point in the history
  • Loading branch information
0c34 committed Nov 6, 2017
1 parent 26d49a0 commit 31f7c29
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions templates/template.setup.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,15 @@
$("#action").on('click',function(){
var data = $("#myform").serialize();
var url = "{{.weburl}}setupaction";
var cssclass = "alert-success";
var cssclass = "";

$.post(url, data)
.done(function(res){
$.each(res[0],function(key, value){
if (value.Status == "0"){
if (value.status == "0"){
cssclass = "alert-danger";
}else{
cssclass = "alert-success";
}
html = pushAlert(value.message, cssclass);
$(".msg-area").append(html)
Expand Down

0 comments on commit 31f7c29

Please sign in to comment.