diff --git a/docs/en_US/release_notes_4_2.rst b/docs/en_US/release_notes_4_2.rst index f0e975bbd..90986e9c1 100644 --- a/docs/en_US/release_notes_4_2.rst +++ b/docs/en_US/release_notes_4_2.rst @@ -22,4 +22,5 @@ Bug fixes | `Bug #3774 `_ - Proper SQL should be generated when create function with return type as custom type argument. | `Bug #3837 `_ - Fixed SQL for when clause while creating Trigger. | `Bug #3838 `_ - Proper SQL should be generated when creating/changing column with custom type argument. -| `Bug #3846 `_ - Proper SQL should be generated when create procedure with custom type arguments. \ No newline at end of file +| `Bug #3846 `_ - Proper SQL should be generated when create procedure with custom type arguments. +| `Bug #3891 `_ - Correct order of Save and Cancel button for json/jsonb editing. \ No newline at end of file diff --git a/web/pgadmin/static/js/slickgrid/editors.js b/web/pgadmin/static/js/slickgrid/editors.js index 86f460ece..18bba9e94 100644 --- a/web/pgadmin/static/js/slickgrid/editors.js +++ b/web/pgadmin/static/js/slickgrid/editors.js @@ -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);