Show
Ignore:
Timestamp:
08/23/08 13:19:32 (3 years ago)
Author:
ray
Message:

#1176 added global config options for centering, greyout, and close on escape

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/new-dialogs/modules/Dialogs/XinhaDialog.js

    r1023 r1026  
    6161      this.closable = globalOptions.closable; 
    6262    } 
     63    if (typeof(globalOptions.greyout) != 'undefined') { 
     64      this.greyout = globalOptions.greyout; 
     65    } 
    6366    if (typeof(globalOptions.closeOnEscape) != 'undefined') { 
    6467      this.closeOnEscape = globalOptions.closeOnEscape; 
     
    7881        //insert styles to make background color skinable 
    7982        var styles, stylesheets = document.styleSheets; 
     83         
    8084        for (var i=0;i<stylesheets.length;i++) 
    8185        { 
     
    8791        doc.body.className = 'xinha_dialog_background'; 
    8892        if (dialog.modal) doc.body.className += ' modal'; 
     93        if (dialog.greyout) doc.body.className += ' greyout'; 
    8994      } 
    9095    } 
     
    97102  backG.className = "xinha_dialog_background"; 
    98103  if (this.modal) backG.className += ' modal'; 
     104  if (this.greyout) backG.className += ' greyout'; 
    99105  with (backG.style) 
    100106  {