Changeset 19658


Ignore:
Timestamp:
02/04/12 11:43:42 (4 months ago)
Author:
sys
Message:

sctab cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Xul_Wsp/content/Wsp/widgets/sctab/sctab.xbl.xml

    r19564 r19658  
    411411                                if(!this.item) Components.utils.import("chrome://scenariWsp/content/commons/item.jsm", this); 
    412412                                this.fUriObject = uriObj.searchUriObject(this); 
     413                                //Les updates concurrents du contenu sont gérés en amont dans le contentViewController. 
    413414                                //this.fUriObject.addUpdateListener(this); 
    414415                                if(desk.isReadOnly() || this.hasAttribute("readonly") || !this.checkTabPerms(this.item.PERM_UPDATE_ITEM)) this.fPanel.isReadOnly = true; 
     
    460461                                ]]></body> 
    461462                        </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                                                         //Suppression 
    476                                                         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                          --> 
    482463                        <method name="xSave"> 
    483464                                <body><![CDATA[ 
     
    596577                                ]]></body> 
    597578                        </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> 
    608579                        <method name="xSave"> 
    609580                                <body><![CDATA[ 
Note: See TracChangeset for help on using the changeset viewer.