Imaginea/mViewer — comment on commit e6e441e367d07956cae35c0d5f63af1283962822
File: src/main/js/documentOperations.js line 339
By agaur:

instead of changing the button text and changing the event listeners for the buttons every time we click on save or edit. Just show or hide the buttons.