function _hasButton($dlg, buttonId) {
        return ($dlg.find("[data-button-id='" + buttonId + "']").length > 0);
    }
@private
Returns true if the modal dialog has a button with the given ID
@param {$.Element} $dlg
@param {string} buttonId
@return {boolean}