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

Merge pull request #119 from thewhodidthis/bf#115--gui

core/GUI: swap placement of OK/Cancel dialog box buttons
This commit is contained in:
Alain Pitiot 2020-07-31 16:23:34 +02:00 committed by GitHub
commit e3f8e7593c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -238,6 +238,15 @@ export class GUI
resizable: false,
buttons: [
{
id: "buttonCancel",
text: "Cancel",
click: function ()
{
self._dialogComponent.button = 'Cancel';
$("#expDialog").dialog('close');
}
},
{
id: "buttonOk",
text: "Ok",
@ -260,15 +269,6 @@ export class GUI
// switch to full screen if requested:
self._psychoJS.window.adjustScreenSize();
}
},
{
id: "buttonCancel",
text: "Cancel",
click: function ()
{
self._dialogComponent.button = 'Cancel';
$("#expDialog").dialog('close');
}
}
],