As of 2024-04-17, a quick search for .button() turns up 29 results in the PageTriage extension:
https://codesearch.wmcloud.org/things/?q=button%5C%28&files=&excludeFiles=&repos=Extension%3APageTriage
These all show up in the curation toolbar, which is undergoing an incremental migration to Vue.js (which would also allow for codex). Since the migration may take a while to be completed, we should start with simple method replacements where possible for the impacted modules.
for example, to disable/enable buttons in pure JavaScript, instead of :
$( '#idval' ).button( 'enable' );
do:
document.getElementById( 'idval' ).removeAttribute( 'disabled' );
instead of:
$( '#idval' ).button( 'disable' );
do:
document.getElementById( 'idval' ).setAttribute( 'disabled', 'disabled' );