Problem/Motivation
I discovered today that in addition to the dialogue itself, we have a fairly large amount of jquery code.
I believe that in order to make switching to a native dialog easier in the future, we need to get rid of jQuery that is not related to the functionality of the dialog.
In this task I simplified the code in dialog.ajax.js
Now there are only $ associated with the jQueryUI dialog options.
Release notes snippet
probably we need to add change record for `dialogButtonsChange` Event.