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:
commit
e3f8e7593c
@ -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');
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user