Änderungen von Dokument ClassEditSheet

Zuletzt geändert von Daniel Herrmann am 2025/07/19 16:57

Von Version Icon 3.1
bearbeitet von Daniel Herrmann
am 2025/07/19 16:57
Änderungskommentar: Install extension [org.xwiki.platform:xwiki-platform-appwithinminutes-ui/17.5.0]
Auf Version Icon 2.1 Icon
bearbeitet von Daniel Herrmann
am 2025/06/22 18:47
Änderungskommentar: Install extension [org.xwiki.platform:xwiki-platform-appwithinminutes-ui/17.4.0]

Zusammenfassung

Details

Icon Seiteneigenschaften
Inhalt
... ... @@ -274,7 +274,6 @@
274 274   * Displays a configuration property of a class field. This macro can also be used to display a property of an object.
275 275   *#
276 276  #macro (displayFieldProperty $property $prefix $field)
277 - ## This 'displayFormType' property only exists for boolean fields.
278 278   #set ($displayFormType = $property.getProperty('displayFormType'))
279 279   #if ($property.classType == 'Boolean' && (!$displayFormType || $displayFormType.value == 'checkbox'))
280 280   <dt>
Icon XWiki.JavaScriptExtension[2]
Code
... ... @@ -300,10 +300,8 @@
300 300   var label = previousDT.down('label');
301 301   prettyNameInput.title = label.textContent || label.innerText;
302 302   }
303 - prettyNameInput.ariaLabel = '$escapetool.javascript($services.localization.render('platform.appwithinminutes.classEditorFieldPrettyNameToolTip'))';
304 304   // Replace the preview label with the pretty name input.
305 305   var previewLabel = field.getViewer().down('label');
306 - // We unset the for attribute, so that this label will not be set implicitely OR explicitely anymore.
307 307   previewLabel.writeAttribute('for', '');
308 308   previewLabel.removeChild(previewLabel.lastChild);
309 309   previewLabel.insert(prettyNameInput);
... ... @@ -328,12 +328,10 @@
328 328   _enhanceFieldDefaultValue : function(event) {
329 329   var field = event.memo.field;
330 330   var fieldName = field.getName();
331 - // We select the default field input and update it.
332 - field.getViewer().select('dd :input').each(function(input) {
329 + field.getViewer().select('input[type=text]', 'textarea').each(function(input) {
333 333   if (!input.title && input.name.endsWith('_0_' + fieldName)) {
334 334   input.title = '$escapetool.javascript($services.localization.render('platform.appwithinminutes.classEditorFieldDefaultValueToolTip'))';
335 335   }
336 - input.ariaLabel = '$escapetool.javascript($services.localization.render('platform.appwithinminutes.classEditorFieldDefaultValueToolTip'))';
337 337   });
338 338   },
339 339   _onSave : function() {
... ... @@ -368,8 +368,7 @@
368 368   if (hintInput) {
369 369   hintInput.addClassName('xHint');
370 370   if (!hintInput.title) {
371 - hintInput.title = '$escapetool.javascript($services.localization.render('platform.appwithinminutes.classEditorFieldHintToolTip'))';
372 - hintInput.ariaLabel = '$escapetool.javascript($services.localization.render('platform.appwithinminutes.classEditorFieldHintToolTip'))';
367 + hintInput.title = 'Hint';
373 373   }
374 374   // Move the hint input below the pretty name input, in the field viewer.
375 375   var dd = hintInput.up('dd');