Commit a58a950f authored by Alain Takoudjou's avatar Alain Takoudjou

Javasscript semicolon

parent f65ff825
...@@ -45,7 +45,7 @@ $(function () { ...@@ -45,7 +45,7 @@ $(function () {
$('.popup').css('display', 'none'); $('.popup').css('display', 'none');
shown = false; shown = false;
}); });
}, hideDelay) }, hideDelay);
return false; return false;
}); });
}); });
\ No newline at end of file
...@@ -8,11 +8,11 @@ ...@@ -8,11 +8,11 @@
$.extend($.fn, { $.extend($.fn, {
Popup: function(msg, option) { Popup: function(msg, option) {
var h; var h;
if (option.type == undefined) option.type = "info"; if (option.type === undefined) option.type = "info";
if (option.closebtn == undefined) option.closebtn = false; if (option.closebtn === undefined) option.closebtn = false;
if (option.duration == undefined) option.duration = 0; if (option.duration === undefined) option.duration = 0;
if (option.load == undefined) option.load = false; if (option.load === undefined) option.load = false;
$box = $(this); var $box = $(this);
if(showDelayTimer){clearTimeout(showDelayTimer);} if(showDelayTimer){clearTimeout(showDelayTimer);}
if(isShow){ if(isShow){
$box.fadeOut('normal', function() { $box.fadeOut('normal', function() {
...@@ -21,8 +21,8 @@ ...@@ -21,8 +21,8 @@
} }
else{setupBox();} else{setupBox();}
function setupBox(){ function setupBox(){
if (msg == undefined){ if (msg === undefined){
msg = "Cannot execute your request. Please make sure you are logged in!!" msg = "Cannot execute your request. Please make sure you are logged in!!";
option.type = "error"; option.type = "error";
} }
$box.empty(); $box.empty();
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
close(); close();
}); });
showBox(); showBox();
if(option.duration != 0){ if(option.duration !== 0){
showDelayTimer = setTimeout(function(){ showDelayTimer = setTimeout(function(){
showDelayTimer = null; showDelayTimer = null;
close(); close();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment