1
0
mirror of https://github.com/psychopy/psychojs.git synced 2025-05-11 16:18:10 +00:00

Merge pull request #354 from thewhodidthis/bf#300-gui

core/GUI: restore warning about required fields
This commit is contained in:
Alain Pitiot 2021-05-31 13:00:06 +02:00 committed by GitHub
commit e4aec61fcd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -113,7 +113,9 @@ export class GUI
}
// prepare jquery UI dialog box:
let htmlCode = '<div id="expDialog" title="' + title + '">';
let htmlCode =
'<div id="expDialog" title="' + title + '">' +
'<p class="validateTips">Fields marked with an asterisk (*) are required.</p>';
// uncomment for older version of the library:
// htmlCode += '<p style="font-size: 0.8em; padding: 0.5em; margin-bottom: 0.5em; color: #FFAA00; border: 1px solid #FFAA00;">&#9888; This experiment uses a deprecated version of the PsychoJS library. Consider updating to a newer version (e.g. by updating PsychoPy and re-exporting the experiment).</p>'+