Changeset 144


Ignore:
Timestamp:
01/03/08 14:13:37 (16 years ago)
Author:
niltonneto
Message:

Melhorias na classe, onde há um array com as janelas criadas e um atributo que sinaliza se a janela está visível.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/phpgwapi/js/dJSWin/dJSWin.js

    r2 r144  
    1010   *  option) any later version.                                              * 
    1111  \****************************************************************************/ 
     12 
     13/* Global array for created windows */ 
     14var arrayJSWin = new Array(); 
    1215 
    1316if (!window.__DEFINE_DJSWIN__) 
     
    323326                 
    324327                document.body.appendChild(this.title); 
    325  
     328                 
     329                /* Add new window to the array */ 
     330                arrayJSWin[params.content_id] = this; 
    326331        } 
    327332 
     
    331336                _this.state = 0; 
    332337                dd.elements[this.title.id].hide(); 
     338                /* Turn the attribute visible false */ 
     339                this.visible = false; 
    333340        } 
    334341 
     
    359366                dd.elements[this.title.id].maximizeZ(); 
    360367                dd.elements[this.title.id].show(); 
     368                /* Turn the attribute visible true */ 
     369                this.visible = true; 
    361370        } 
    362371 
Note: See TracChangeset for help on using the changeset viewer.