Correct order of Save and Cancel button for json/jsonb editing. Fixes #3891

This commit is contained in:
Aditya Toshniwal 2019-01-18 18:14:50 +05:30 committed by Akshay Joshi
parent 06ae799d02
commit 27cdb835cb
2 changed files with 4 additions and 3 deletions

View File

@ -23,3 +23,4 @@ Bug fixes
| `Bug #3837 <https://redmine.postgresql.org/issues/3837>`_ - Fixed SQL for when clause while creating Trigger.
| `Bug #3838 <https://redmine.postgresql.org/issues/3838>`_ - Proper SQL should be generated when creating/changing column with custom type argument.
| `Bug #3846 <https://redmine.postgresql.org/issues/3846>`_ - Proper SQL should be generated when create procedure with custom type arguments.
| `Bug #3891 <https://redmine.postgresql.org/issues/3891>`_ - Correct order of Save and Cancel button for json/jsonb editing.

View File

@ -307,8 +307,8 @@
$input = getTextArea().appendTo($wrapper);
$buttons = getButtons(true).appendTo($wrapper);
$buttons.find('button:first').on('click', this.save);
$buttons.find('button:last').on('click', this.cancel);
$buttons.find('button:first').on('click', this.cancel);
$buttons.find('button:last').on('click', this.save);
$input.on('keydown', this.handleKeyDown);
scope.position(args.position);