In VE, after save dialog is openned, the minor edit button appears in that dialog too. But I can not operate with it in my VE gadget, because it has no id, class, nothing. I also can not use any class or id of any parent element, because of the same issue. My only choice is $('.ve-ui-mwSaveDialog-checkboxes input:first') which is really not good (what if the order changes in the future?). Please add some id or class for easier gadgets hacking.
Customize query in gerrit
|mediawiki/extensions/VisualEditor||master||+2 -1||MWSaveDialog: Give checkboxes a class based on their origin's name|