includes/clientside/static/faders.js
changeset 38 ed06961e54dd
parent 32 4d87aad3c4c0
child 53 3dea509d88ae
equal deleted inserted replaced
37:7267c2a67a93 38:ed06961e54dd
   126   buttondiv.style.verticalAlign = 'middle';
   126   buttondiv.style.verticalAlign = 'middle';
   127   buttondiv.id = 'messageBoxButtons';
   127   buttondiv.id = 'messageBoxButtons';
   128   
   128   
   129   this.clickHandler = function() { messagebox_click(this, mb_current_obj); };
   129   this.clickHandler = function() { messagebox_click(this, mb_current_obj); };
   130   
   130   
   131   if(type & MB_ICONINFORMATION || type & MB_ICONSTOP || type & MB_ICONQUESTION || type & MB_ICONEXCLAMATION || type & MB_ICONLOCK)
   131   if( ( type & MB_ICONINFORMATION || type & MB_ICONSTOP || type & MB_ICONQUESTION || type & MB_ICONEXCLAMATION ) && !(type & MB_ICONLOCK) )
   132   {
   132   {
   133     mydiv.style.paddingLeft = '50px';
   133     mydiv.style.paddingLeft = '50px';
   134     mydiv.style.width = '360px';
   134     mydiv.style.width = '360px';
   135     mydiv.style.backgroundRepeat = 'no-repeat';
   135     mydiv.style.backgroundRepeat = 'no-repeat';
   136     mydiv.style.backgroundPosition = '8px 8px';
   136     mydiv.style.backgroundPosition = '8px 8px';
       
   137   }
       
   138   else if ( type & MB_ICONLOCK )
       
   139   {
       
   140     mydiv.style.paddingLeft = '50px';
       
   141     mydiv.style.width = '360px';
       
   142     mydiv.style.backgroundRepeat = 'no-repeat';
   137   }
   143   }
   138   
   144   
   139   if(type & MB_ICONINFORMATION)
   145   if(type & MB_ICONINFORMATION)
   140   {
   146   {
   141     mydiv.style.backgroundImage = 'url(\''+scriptPath+'/images/info.png\')';
   147     mydiv.style.backgroundImage = 'url(\''+scriptPath+'/images/info.png\')';