Changes for page Create Application
Last modified by Sebastian Marsching on 2024/01/08 23:13
From version 1.1
edited by Sebastian Marsching
on 2022/01/09 00:05
on 2022/01/09 00:05
Change comment:
Install extension [org.xwiki.platform:xwiki-platform-appwithinminutes-ui/13.10.2]
To version 2.1
edited by Sebastian Marsching
on 2022/05/29 22:42
on 2022/05/29 22:42
Change comment:
Install extension [org.xwiki.platform:xwiki-platform-appwithinminutes-ui/14.4]
Summary
-
Objects (1 modified, 0 added, 0 removed)
Details
- XWiki.JavaScriptExtension[0]
-
- Code
-
... ... @@ -5,7 +5,7 @@ 5 5 var submitButton = $('#wizard-next').prop('disabled', true); 6 6 7 7 var errorMessage = appNameInput.closest('dd').prev('dt').find('.xErrorMsg'); 8 - if (errorMessage. size()== 0){8 + if (!errorMessage.length) { 9 9 errorMessage = $(document.createElement('span')).addClass('xErrorMsg').hide().appendTo(errorMessage.addBack()); 10 10 } 11 11 ... ... @@ -22,7 +22,7 @@ 22 22 var updatePreview = function(content) { 23 23 preview.removeClass('loading').html(content); 24 24 var error = preview.find('.xErrorMsg'); 25 - submitButton.prop('disabled', error. size()> 0);25 + submitButton.prop('disabled', error.length); 26 26 toggleValidationError(error.remove().text()); 27 27 }; 28 28 ... ... @@ -44,7 +44,7 @@ 44 44 45 45 appNameInput.add(appParentInput) 46 46 .on('input', schedulePreviewUpdate) 47 - .keyup (function(event) {47 + .on('keyup', function(event) { 48 48 // Show the error message if the user presses Enter before typing anything. 49 49 if (event.which == 13 && appNameInput.val() == '' && !appNameInput.hasClass('xErrorField')) { 50 50 fetchPreviewUpdate();