Skip to content

fix: dialog does not auto-close after successful fax send #79

@kojiromike

Description

@kojiromike

Problem

After successfully sending a fax from the document viewer dialog, the dialog does not automatically close. The browser console shows:

Uncaught ReferenceError: dlgclose is not defined

Additionally, jQuery is not available:

Uncaught ReferenceError: $ is not defined

Root Cause

The send-document.html.twig template is a standalone HTML page that doesn't include OpenEMR's dialog utilities or jQuery. The dlgclose() function is provided by OpenEMR's dialog system and is only available when properly integrated.

Expected Behavior

Dialog should close automatically ~2 seconds after successful fax send, showing the success message briefly before closing.

Current Behavior

  • Success message displays
  • Dialog stays open
  • User must manually click the X to close

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions