Changeset 8850
- Timestamp:
- 03/02/07 17:01:13 (5 years ago)
- Location:
- trunk/Xul_Cms/chrome/content/scenaricms
- Files:
-
- 5 edited
-
deskwsp/wspblock.xbl.xml (modified) (1 diff)
-
wspmgr/wspconfig/wspModeles.overlay.xul (modified) (4 diffs)
-
wspmgr/wspcreate/wspcreate.overlay.xul (modified) (5 diffs)
-
wspmgr/wspmgr.js (modified) (1 diff)
-
wspmgr/wsput.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Xul_Cms/chrome/content/scenaricms/deskwsp/wspblock.xbl.xml
r8833 r8850 254 254 // suppression de l'atelier 255 255 try{ 256 wspUt.removeSynchWsp(this.fWspRegistered );256 wspUt.removeSynchWsp(this.fWspRegistered.getServer(), this.fWspRegistered.getCode()); 257 257 }catch(e){ 258 258 ut.debug("wsbblock.xbl.xml > remove :: " + e); -
trunk/Xul_Cms/chrome/content/scenaricms/wspmgr/wspconfig/wspModeles.overlay.xul
r8833 r8850 56 56 wspChoiceModelMgr._LastError = null; 57 57 wspChoiceModelMgr._WspReg = Components.classes["@scenari.com/wspregistryservice;1"].getService(Components.interfaces.scIWspRegistryService); 58 wspChoiceModelMgr._LastState = "noWspType";//[wspType|noWspType] 58 59 59 60 wspChoiceModelMgr._MainBox = document.getElementById("ovWspModeles"); … … 81 82 * Actualise la zone de paramétrage 82 83 **/ 83 var tmpLastState = "noWspType";//[wspType|noWspType]84 84 85 wspChoiceModelMgr.refresh = function(){ 85 86 function fIsWorking(pState){ … … 104 105 vWspCMMgr._WspConfig.choiceWsptype(vWspTypeDom); 105 106 vWspCMMgr._BaseWspType = vWspTypeDom; 106 tmpLastState="wspType";107 vWspCMMgr._LastState="wspType"; 107 108 fIsWorking(false); 108 109 }else if(vStatus=='noWsp'){ 109 if(tmpLastState!="noWspType") vWspCMMgr._WspConfig.choiceWsptype();//refresh SSi état précédent différent 110 tmpLastState="noWspType"; 110 if(vWspCMMgr._LastState!="noWspType") vWspCMMgr._WspConfig.choiceWsptype();//refresh SSi état précédent différent 111 vWspCMMgr._LastState="noWspType"; 112 vWspCMMgr._BaseWspType=null; 111 113 fIsWorking(false); 112 114 }else if(vStatus==null){ … … 211 213 **/ 212 214 wspChoiceModelMgr.selectTypeModel = function(pType){ 215 this._LastState = "noWspType"; 213 216 try{ 214 217 function xDesableAllTypeDefModel(){ -
trunk/Xul_Cms/chrome/content/scenaricms/wspmgr/wspcreate/wspcreate.overlay.xul
r8810 r8850 73 73 try{ 74 74 var vWspCreate = this; 75 76 75 var cbOk = function (pWspList){ 77 76 if(pWspList) vWspCreate._ServerWspList = pWspList; … … 217 216 return; 218 217 } 219 218 220 219 if(wspChoiceModelMgr.getBaseWspType()){// le chemin spécifié possède déja un wspType 221 220 // création de l'atelelier avec l'ancien wspType … … 229 228 vWspCreate.xSetSavePending(vIsInstallPending); 230 229 if(!vIsInstallPending){ 231 var vResultCreate = vWspCreate._WspReg.addWsp(vServerUrl, vCode, vComment, vActif); 232 if(!vResultCreate) throw{}; 233 if(vWspCreate._CbAfterCreate) vWspCreate._CbAfterCreate(pStatus); 234 /* 235 if(vStatus=="abort|wspError"){ 236 }else if(vStatus=="success"){ 230 if(vStatus=="success" || vStatus=="wspError"){ 231 var vResultCreate = vWspCreate._WspReg.addWsp(vServerUrl, vCode, vComment, vActif); 232 if(!vResultCreate) throw{toString:function(){return "Création de l'atelier incomplète"}}; 233 if(vWspCreate._CbAfterCreate) vWspCreate._CbAfterCreate(pStatus); 234 }else if(vStatus=="abort"){ 235 // action annulée par l'utilisateur => on supprime la précréation de l'atelier 236 wspUt.removeSynchWsp(vWspCreate._ServerObj, vCode, true); 237 if(vWspCreate._CbAfterCreate) vWspCreate._CbAfterCreate(pStatus); 237 238 } 238 */239 239 } 240 240 }catch(e){ 241 if(vWspCreate._CbAfterCreate) vWspCreate._CbAfterCreate(pStatus); 241 242 ut.debug("WspCreateMgr.createWsp > fCbSave : " + e); 242 243 } … … 247 248 } 248 249 }catch(e){ 249 ut.debug("WspCreateMgr.createWsp > cb : " + e);250 ut.debug("WspCreateMgr.createWsp (wspType) > cb : " + e); 250 251 } 251 252 } … … 277 278 * Refresh 278 279 **/ 279 var tmpLastState = "noWspType";//[noWspType|wspType]280 //var tmpLastState = "noWspType";//[noWspType|wspType] 280 281 WspCreateMgr.refresh = function(){ 281 282 try{ -
trunk/Xul_Cms/chrome/content/scenaricms/wspmgr/wspmgr.js
r8833 r8850 432 432 var vWsp = this.fWspReg.getWsp(vUrlServer, vItem.getAttribute('id')); 433 433 434 wspUt.removeSynchWsp(vWsp );434 wspUt.removeSynchWsp(vWsp.getServer(), vWsp.getCode()); 435 435 document.getElementById(this.fIdTree).view.selection.select(0); 436 436 this.refreshView(); -
trunk/Xul_Cms/chrome/content/scenaricms/wspmgr/wsput.js
r8833 r8850 136 136 var vExecMigration = {value:vIsMigratingNeeded}; 137 137 if(vIsMigratingNeeded){ 138 if(!ut.confirm("Les contenus de votre atelier doivent être mis à jour. Vous ne pourrez pas annuler cette action. Voulez-vous continuer la modification du modèle de l'atelier?", null, "Continuer", "Annuler", "Executer la mise à jour des contenus", vExecMigration)){138 if(!ut.confirm("Les contenus de votre atelier doivent être mis à jour. Vous ne pourrez pas annuler cette action. Voulez-vous continuer?", null, "Continuer", "Annuler", "Executer la mise à jour des contenus", vExecMigration)){ 139 139 function cbAbort(pEvent){ 140 140 if(pCbSavePending) pCbSavePending(false, 'abort'); … … 183 183 * @param pErrorCb() 184 184 **/ 185 wspUt.removeSynchWsp = function(p WspObj){185 wspUt.removeSynchWsp = function(pServerObj, pCodeWsp, pSilentMode){ 186 186 try{ 187 187 var vCheckResult = {}; 188 if( ut.confirm("Voulez-vous vraiment supprimer l'atelier '" + pWspObj.getCode()+ "' ?", "Suppression d'un atelier", null, null, "Supprimer également les contenus de cet atelier du disque dur", vCheckResult)){188 if(pSilentMode || ut.confirm("Voulez-vous vraiment supprimer l'atelier '" + pCodeWsp + "' ?", "Suppression d'un atelier", null, null, "Supprimer également les contenus de cet atelier du disque dur", vCheckResult)){ 189 189 try{ 190 190 var vReq = ""; 191 191 if(vCheckResult.value){ 192 vReq = "/u/adminWsp?cdaction=Delete¶m=" + p WspObj.getCode();192 vReq = "/u/adminWsp?cdaction=Delete¶m=" + pCodeWsp; 193 193 }else{ 194 vReq = "/u/adminWsp?cdaction=Drop¶m=" + p WspObj.getCode();194 vReq = "/u/adminWsp?cdaction=Drop¶m=" + pCodeWsp; 195 195 } 196 var vResult = p WspObj.getServer().dialogSynchWithService(vReq, "PUT", null , "text/xml");197 this._WspReg.removeWsp(p WspObj.getUrlServer(), pWspObj.getCode());196 var vResult = pServerObj.dialogSynchWithService(vReq, "PUT", null , "text/xml"); 197 this._WspReg.removeWsp(pServerObj.getIniUrl(), pCodeWsp); 198 198 }catch(e){ 199 ut.debug("Impossible de supprimer l'atelier '" + p WspObj.getCode()+ "': " + e);200 ut.alert("suppression de l'atelier '" + p WspObj.getCode()+ "' impossible");199 ut.debug("Impossible de supprimer l'atelier '" + pCodeWsp + "': " + e); 200 ut.alert("suppression de l'atelier '" + pCodeWsp + "' impossible"); 201 201 } 202 202 }
Note: See TracChangeset
for help on using the changeset viewer.