Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG  Not logged in ELOG logo
icon3.gif   Cancel button missing when editing an entry, posted by Andreas Luedeke on Wed Nov 16 13:48:33 2016 
    icon2.gif   Re: Cancel button missing when editing an entry, posted by Stefan Ritt on Wed Nov 16 14:01:18 2016 
       icon4.gif   Re: Cancel button missing when editing an entry, posted by Grant Jeffcote on Wed Nov 16 17:12:40 2016 
          icon2.gif   Re: Cancel button missing when editing an entry, posted by Andreas Luedeke on Thu Nov 17 09:14:15 2016 
          icon2.gif   Re: Cancel button missing when editing an entry, posted by Stefan Ritt on Mon Nov 21 15:07:05 2016 
             icon2.gif   Re: Cancel button missing when editing an entry, posted by Christine Quicot on Wed Nov 23 09:25:15 2016 
       icon2.gif   Re: Cancel button missing when editing an entry, posted by Andreas Luedeke on Thu Nov 24 07:38:52 2016 
          icon2.gif   Re: Cancel button missing when editing an entry, posted by Stefan Ritt on Thu Nov 24 08:40:31 2016 
Message ID: 68459     Entry time: Wed Nov 16 14:01:18 2016     In reply to: 68458     Reply to this: 68460   68466
Icon: Reply  Author: Stefan Ritt  Author Email: stefan.ritt@psi.ch 
Category: Request  OS: All  ELOG Version: 3.1.2 
Subject: Re: Cancel button missing when editing an entry 

The problem is that the elog database does not allow for a copy of an entry before you make modifications (and therefore get a "draft"). This is actually very simila to other note taking programs. I use Evernote, which constantly synchronizes between devices, and there I also cannot go back to the version before I started making modification. What one would need is a version system (and Evernote has one), so you can go back to the previous verison, the pre-previous version and so on. But this requires a complete redesign of the elog database.

A quick and dirty solution would be to store the origianal entry inside the browser (using JavaScript). You could then restore the initial version with a "cancel" button. But this mechanism relies then on the browser. If you just leave the page, there is no way the browser can put back the old version.

Stefan

Andreas Luedeke wrote:

If I edit an old entry, and do some mistake while editing, then there is currently no way to savely discard the changes.

The problem is that the entry will become a draft: if I close the window without saving, then the whole entry is gone: it will be converted into a draft entry. But the draft does contain my changes, it is not the originally saved entry!

The draft mechanism should keep a copy of the entry before I opened it in edit mode, and allow to go back to that copy. The edit form has currently the buttons "Submit", "Save", "Preview" and "Delete"; it should have in addition the button "Cancel", that just closes the edit window without saving the entry and even deleting the draft that was saved while the entry was modified. This should bring you back to the previous list view.

Is anyone out there in favour of this change?

 

ELOG V3.1.5-fe60aaf