From f4b9717467515584ee1c0026d3f300c14048b470 Mon Sep 17 00:00:00 2001 From: Sotiri Bakagiannis Date: Mon, 27 Jul 2020 12:14:47 +0100 Subject: [PATCH] core/GUI: swap placement of OK/Cancel dialog box buttons --- js/core/GUI.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/js/core/GUI.js b/js/core/GUI.js index 4d97ffa..71d7b06 100644 --- a/js/core/GUI.js +++ b/js/core/GUI.js @@ -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'); - } } ],