- Timestamp:
- 03/06/10 22:20:51 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Xul_Wsp/content/scenariWsp/desks/wspDesk/wspDesk.js
r15057 r15069 71 71 var vActionSave = new actions.Action("actionSave").setGroup("content").setLabel("Enregistrer"); 72 72 vActionSave.isEnabled = function(pContext){ 73 log.info("vActionSave.isEnabled:::"+pContext); 73 74 try { 74 75 return pContext.window.desk.requestForCurrentView({request:"isDirty"}, false); 75 76 } catch(e){ 77 log.debug("vActionSave.isEnabled::"+e); 76 78 return false; 77 79 } … … 94 96 return ! pContext.window.desk.canCloseDesk(true); 95 97 } catch(e){ 98 log.debug("vActionSaveAll.isEnabled::"+e); 96 99 return false; 97 100 } … … 137 140 */ 138 141 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 139 146 //columns 140 147 var vWspColumns = {};
Note: See TracChangeset
for help on using the changeset viewer.