Changeset 19654
Legend:
- Unmodified
- Added
- Removed
-
trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs/sm_simpleTask/mainview.xul.xsl
r19630 r19654 63 63 <taskBox title="{resultatAgent('//nameTask')}" 64 64 taskCode="{resultatAgent('//codeTask')}" 65 editorKey=""/> 65 editorKey=""> 66 <xsl:if test="sm:security/sm:perms/sm:writePerm/@sc:refUri"><xsl:attribute name="writePerm"><xsl:value-of select="resultatAgent(concat('@', getIdFromPath(sm:security/sm:perms/sm:writePerm/@sc:refUri), '/codePerm'))"/></xsl:attribute></xsl:if> 67 </taskBox> 66 68 <script src="chrome://scenariWsp/content/windows/contentView/mainview.launch.js"/> 67 69 </window> -
trunk/Xul_Core/content/Core/widgets/jsForm/jsForm.xbl.xml
r19651 r19654 226 226 <!-- Ensemble des inputs invalides (modifié par les handler inputInvalid et inputValid) --> 227 227 <field name="fInvalidInputs" /> 228 <!-- Mode readonly 229 ATTENTION : Pas de propagation dsur les areas en cas de changement de cette valeur ; réappeler buildInputs si besoin--> 230 <property name="readonly"> 231 <getter> 232 return this.getAttribute('readonly') 233 </getter> 234 <setter> 235 if(val) this.setAttribute('readonly', true) 236 else this.removeAttribute('readonly'); 237 </setter> 238 </property> 228 239 229 240 <!-- … … 245 256 this.removeInputs(); 246 257 this.fInputs = this.areas.applyLayout(this, vAreaList, pContext); 258 if(this.readonly){ 259 for each(var vInput in this.fInputs) { 260 vInput.setAttribute("readonly", true); 261 } 262 } 247 263 if (!(pInitializeInputs==false)) { 248 264 //log.info("pContext.value ::: "+log.listProperties(pContext.value)); -
trunk/Xul_Wsp/content/Collab/widgets/taskBox/taskBox.xbl.xml
r19633 r19654 49 49 - taskCode 50 50 - editorKey [optionnel] 51 - writePerm [optionnel] 51 52 --> 52 53 <binding id="taskBox"> … … 106 107 <property name="editorKey" onget="return this.hasAttribute('editorKey') ? this.getAttribute('editorKey') : ''" readonly="true"/> 107 108 109 <!-- box readonly ou pas --> 110 <property name="readonly"> 111 <getter><![CDATA[ 112 var vIsReadonly = false; 113 if(window.scSecurityCtx && this.hasAttribute("writePerm")){ 114 var vWritePerm = window.scSecurityCtx.getPerm(this.getAttribute("writePerm")); 115 vIsReadonly = !window.scSecurityCtx.hasPermForObjectRoot(vWritePerm); 116 } 117 return desk.isReadOnly() || this.hasAttribute("readonly") || vIsReadonly; 118 ]]></getter> 119 </property> 120 121 <!-- --> 122 <method name="this.checkBoxPerms"> 123 <parameter name="pPermList"/> 124 <body><![CDATA[ 125 if(!pPermList) return true; 126 var vScSecurityCtx = window.scSecurityCtx; 127 if(!vScSecurityCtx) return true; 128 //log.info("pPermList :: "+log.listProperties(pPermList)); 129 return vScSecurityCtx.hasPermForObjectRoot(pPermList); 130 ]]></body> 131 </method> 132 108 133 109 134 <!-- Chargement/recharement de la box --> … … 204 229 //Construction des widgets. 205 230 var vListWidgets = vModelExtPoints.getList("formEditor:widgets:"+this.editorKey); 231 this.fJsForm.readonly = this.readonly; 206 232 this.fJsForm.buildInputs(vContext, vListWidgets, false); 207 233 this.fJsForm.extractValue(vContext);
Note: See TracChangeset
for help on using the changeset viewer.