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

wspDesk : début menu wsp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Xul_Wsp/content/scenariWsp/desks/wspDesk/wspDesk.js

    r15057 r15069  
    7171                var vActionSave = new actions.Action("actionSave").setGroup("content").setLabel("Enregistrer"); 
    7272                vActionSave.isEnabled = function(pContext){ 
     73                        log.info("vActionSave.isEnabled:::"+pContext); 
    7374                        try { 
    7475                                return pContext.window.desk.requestForCurrentView({request:"isDirty"}, false); 
    7576                        } catch(e){ 
     77                                log.debug("vActionSave.isEnabled::"+e); 
    7678                                return false; 
    7779                        } 
     
    9496                                return ! pContext.window.desk.canCloseDesk(true); 
    9597                        } catch(e){ 
     98                                log.debug("vActionSaveAll.isEnabled::"+e); 
    9699                                return false; 
    97100                        } 
     
    137140                */ 
    138141                 
     142                //Menus du wspDesk 
     143                extPoints.addSvcToList("menu:wspDesk:wsp", "actionSave", 1, "actionSave", 10); 
     144                extPoints.addSvcToList("menu:wspDesk:wsp", "actionSaveAll", 1, "actionSaveAll", 20); 
     145                 
    139146                //columns 
    140147                var vWspColumns = {}; 
Note: See TracChangeset for help on using the changeset viewer.