Changeset 19658
- Timestamp:
- 02/04/12 11:43:42 (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Xul_Wsp/content/Wsp/widgets/sctab/sctab.xbl.xml
r19564 r19658 411 411 if(!this.item) Components.utils.import("chrome://scenariWsp/content/commons/item.jsm", this); 412 412 this.fUriObject = uriObj.searchUriObject(this); 413 //Les updates concurrents du contenu sont gérés en amont dans le contentViewController. 413 414 //this.fUriObject.addUpdateListener(this); 414 415 if(desk.isReadOnly() || this.hasAttribute("readonly") || !this.checkTabPerms(this.item.PERM_UPDATE_ITEM)) this.fPanel.isReadOnly = true; … … 460 461 ]]></body> 461 462 </method> 462 <!-- Géré dans le desk directement.463 <method name="handleUriObjectUpdate">464 <parameter name="pUriObject"/>465 <parameter name="pUri"/>466 <parameter name="pEventType"/>467 <body><![CDATA[468 //log.debug("sctabxmleditor.handleUriObjectUpdate : "+this.getAttribute("label")+ " - this.fIsSelected="+this.fIsSelected);469 if(this.fSavePending) return; //Nous sommes à l'origine de l'enreg.470 if(this.fIsSelected) {471 //log.debug("sctabxmleditor.handleUriObjectUpdate : "+this.fullUriToEdit);472 if(pEventType == Components.interfaces.scIUriListener.EVENT_TYPE_UPDT) {473 this.fEditor.setConcurrentVersion(this.getAttribute("model"), this.fUriObject.getDomContent(this.fullUriToEdit));474 } else if(pEventType == Components.interfaces.scIUriListener.EVENT_TYPE_REMOVE) {475 //Suppression476 ui.alert("Attention, cet item vient d'être supprimé par ailleurs. Si vous enregistrez, l'item sera à nouveau créé.", "Suppression concurrente");477 }478 }479 ]]></body>480 </method>481 -->482 463 <method name="xSave"> 483 464 <body><![CDATA[ … … 596 577 ]]></body> 597 578 </method> 598 <method name="handleUriObjectUpdate">599 <parameter name="pUriObject"/>600 <parameter name="pUri"/>601 <body>602 if(this.fSavePending) return; //Nous sommes à l'origine de l'enreg.603 if(this.fIsSelected) {604 this.fEditor.setConcurrentVersion(this.xGetContentFromServer());605 }606 </body>607 </method>608 579 <method name="xSave"> 609 580 <body><![CDATA[
Note: See TracChangeset
for help on using the changeset viewer.