Changeset 15068


Ignore:
Timestamp:
03/06/10 22:05:20 (2 years ago)
Author:
sys
Message:

selItem : check canCloseDesk() avant fermeture de la fenetre.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Xul_Wsp/content/scenariWsp/windows/itemSelector/selItem.js

    r15066 r15068  
    324324        /** Gestion de la fermeture de la fenetre et du résultat de la selection. */ 
    325325        selectAndClose : function(){ 
    326                 window.close(); 
     326                if(this.canCloseDesk()) window.close(); 
    327327        }, 
    328328        cancelAndClose : function(){ 
    329                 sResult.refUri = null; 
    330                 sResult.shortDesc = null; 
    331                 window.close(); 
     329                if(this.canCloseDesk()) { 
     330                        sResult.refUri = null; 
     331                        sResult.shortDesc = null; 
     332                        window.close(); 
     333                } 
    332334        }, 
    333335         
Note: See TracChangeset for help on using the changeset viewer.