mirror of
https://github.com/psychopy/psychojs.git
synced 2025-05-12 16:48: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,
|
resizable: false,
|
||||||
|
|
||||||
buttons: [
|
buttons: [
|
||||||
|
{
|
||||||
|
id: "buttonCancel",
|
||||||
|
text: "Cancel",
|
||||||
|
click: function ()
|
||||||
|
{
|
||||||
|
self._dialogComponent.button = 'Cancel';
|
||||||
|
$("#expDialog").dialog('close');
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
id: "buttonOk",
|
id: "buttonOk",
|
||||||
text: "Ok",
|
text: "Ok",
|
||||||
@ -260,15 +269,6 @@ export class GUI
|
|||||||
// switch to full screen if requested:
|
// switch to full screen if requested:
|
||||||
self._psychoJS.window.adjustScreenSize();
|
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