Giter Site home page Giter Site logo

Comments (14)

stephenwaite avatar stephenwaite commented on July 30, 2024 1

hi @tywrenn , that was just for the soap form
#3303 (comment)

from openemr.

bradymiller avatar bradymiller commented on July 30, 2024

My thoughts here, are that in the tabs layout, need the following to happen when a user is editing a form:

  1. Warn of unsaved changes if try to close the tab.
  2. Warn of unsaved changes if try to open another screen that will overwrite the tab with the form in it.

from openemr.

sunsetsystems avatar sunsetsystems commented on July 30, 2024

Agree. But seems the beforeunload handler should trigger in either case? So maybe mostly a matter of finding out why it's not working.

from openemr.

bradymiller avatar bradymiller commented on July 30, 2024

Hi,
Can you post the code as a Pull Request?
thanks,
-brady

from openemr.

bradymiller avatar bradymiller commented on July 30, 2024

I just reviewed this fix. Rather than ask if ok to close the tab (which will become tedious for users), need to incorporate the beforeunload handler in the pertinent forms. To see example, recommend looking at use of this in the openemr/interface/forms/LBF/new.php script.

from openemr.

bradymiller avatar bradymiller commented on July 30, 2024

@sunsetsystems ,
I am only seeing the beforeunload handler being used in the openemr/interface/forms/LBF/new.php script. Were there other places that had a mechanism to prevent losing information in the frames UI?

from openemr.

sunsetsystems avatar sunsetsystems commented on July 30, 2024

Yes it was also done for demographics and the layout editor. Commit is here:
364afe2

from openemr.

robertdown avatar robertdown commented on July 30, 2024

Hi @rishabhemr can you submit a pull request here on github with those changes for review? Thanks!

from openemr.

stale avatar stale commented on July 30, 2024

This issue has been automatically marked as stale because it has not had any recent activity within the past 90 days. It will be closed in 7 days if no further activity occurs.

from openemr.

tywrenn avatar tywrenn commented on July 30, 2024

Bump -- this should've been added

from openemr.

stephenwaite avatar stephenwaite commented on July 30, 2024

we're getting closer with #3303

from openemr.

tywrenn avatar tywrenn commented on July 30, 2024

@stephenwaite Looks like that merged -- time to close this

from openemr.

stale avatar stale commented on July 30, 2024

This issue has been automatically marked as stale because it has not had any recent activity within the past 90 days. It will be closed in 7 days if no further activity occurs.

from openemr.

tywrenn avatar tywrenn commented on July 30, 2024

Bump

from openemr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.