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

core/GUI: swap placement of OK/Cancel dialog box buttons

This commit is contained in:
Sotiri Bakagiannis 2020-07-27 12:14:47 +01:00
parent 08972dae90
commit f4b9717467

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');
}
}
],