Default alert is overwritten

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12452 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
nagoon97 2012-12-24 09:08:22 +00:00
parent d1bbd72416
commit 7ec02806be
4 changed files with 40 additions and 143 deletions

View file

@ -1002,7 +1002,8 @@ jQuery(function($){
</div>');
//console.log($msgBox.html());
$($.find("body")).append($msgBox);
$($("body")).append($msgBox);
//console.log($msgBox);
//console.log($.find("body"));
//$msgBox.show();
/*
@ -1126,6 +1127,16 @@ jQuery(function($){
this.showMsgBox(htOptions);
}
$.xeMsgBox.alert = function(sTitle){
htOptions = {
bAlert : true,
bNobody : true,
bSmall: true,
sTitle : sTitle
};
this.showMsgBox(htOptions);
}
$.xeMsgBox.confirmDialog = function(htOptions){
htOptions = htOptions || {};
htOptions.bAlert = false;
@ -2271,5 +2282,10 @@ jQuery(function($){
});
*/
});
//----------------menu selector end
//----------------menu selector end
jQuery(function($){
alert = function(){
return $.xeMsgBox.alert.apply($.xeMsgBox, arguments);
}
});