Changeset 19671
- Timestamp:
- 02/07/12 15:05:14 (4 months ago)
- Location:
- trunk
- Files:
-
- 4 edited
-
Wsp_Modeling/spaces/gen/modelBuilder/bs/sm_simpleTask/mainview.xul.xsl (modified) (1 diff)
-
Xul_Wsp/content/Collab/widgets/taskBox/ico16/reset.png (modified) (previous)
-
Xul_Wsp/content/Collab/widgets/taskBox/ico16/save.png (modified) (previous)
-
Xul_Wsp/content/Collab/widgets/taskBox/taskBox.xbl.xml (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs/sm_simpleTask/mainview.xul.xsl
r19654 r19671 60 60 <script src="chrome://scenariWsp/content/windows/contentView/mainview.init.js"/> 61 61 <script src="chrome://scenariXedLib/content/core/xed.js"/> 62 <script>Components.utils.import("chrome://scenariCollab/content/utils/task.jsm");</script> 63 <taskBox title="{resultatAgent('//nameTask')}" 62 <script><![CDATA[ 63 Components.utils.import("chrome://scenariCollab/content/utils/task.jsm"); 64 65 var vTaskBox = document.getElementById("taskBox"); 66 67 // Surcharge de cette action pour réinitialisation correcte de la taskBox (bug reload datepicker) 68 var actionRefreshTask = new actions.Action("actionRefreshTask").setGroup("admin").setLabel("Recharger la fenêtre"); 69 actionRefreshTask.execute = function(pEvent, pContext) { 70 try { 71 var vTaskBox = pContext.window.document.getElementById("taskBox"); 72 if(vTaskBox && pContext.window.desk && pContext.window.desk.canCloseDesk && pContext.window.desk.canCloseDesk()) { 73 vTaskBox.reload(); 74 } 75 }catch(e){log.debug(e);} 76 }; 77 extPoints.registerSvcByInst("actionRefreshWin", 21, actionRefreshTask); 78 ]]></script> 79 <taskBox id="taskBox" 80 title="{resultatAgent('//nameTask')}" 64 81 taskCode="{resultatAgent('//codeTask')}" 65 82 editorKey=""> -
trunk/Xul_Wsp/content/Collab/widgets/taskBox/taskBox.xbl.xml
r19656 r19671 83 83 <constructor> 84 84 try{ 85 this._IsEditorInited = false;86 85 this.reload(); 87 86 //Reception des events externes … … 122 121 <method name="reload"> 123 122 <body><![CDATA[@xmlCdata.jsStr 124 this._IsEditorInited = false; 125 this.xOnInputClean(); 126 if(src.isNewSrcUri(this.uriObject.getSrcUri())) { 127 this.fSaveBtn.setAttribute("tooltiptext", "Créer"); 128 this.xLaunchEditor(); 129 } else { 130 this.fSaveBtn.setAttribute("tooltiptext", "Modifier"); 131 this.fCancelBtn.hidden = false; 132 function onContentLoaded(pEvent){ 133 try { 134 this._DomContent = pEvent.target.responseXML; 135 this.xLaunchEditor(); 136 }catch(e){log.debug(e);} 137 } 138 139 this.uriObject.loadDomContent(null, onContentLoaded.bind(this)); 123 if(!("_IsEditorInited" in this) || this._IsEditorInited){ 124 this._IsEditorInited = false; 125 this.xOnInputClean(); 126 if(src.isNewSrcUri(this.uriObject.getSrcUri())) { 127 this.fSaveBtn.setAttribute("tooltiptext", "Créer"); 128 this.xLaunchEditor(); 129 } else { 130 this.fSaveBtn.setAttribute("tooltiptext", "Modifier"); 131 this.fCancelBtn.hidden = false; 132 function onContentLoaded(pEvent){ 133 try { 134 this._DomContent = pEvent.target.responseXML; 135 this.xLaunchEditor(); 136 }catch(e){log.debug(e);} 137 } 138 139 this.uriObject.loadDomContent(null, onContentLoaded.bind(this)); 140 } 140 141 } 141 142 ]]></body> … … 265 266 this.xOnInputDirty(); 266 267 </handler> 268 <!-- 267 269 <handler event="XEDStatusDirty"><![CDATA[ 268 270 window.fNeedSave = true; … … 271 273 window.fNeedSave = false; 272 274 ]]></handler> 275 --> 273 276 </handlers> 274 277 </binding>
Note: See TracChangeset
for help on using the changeset viewer.