Bug 823738 - don't allow files to be deleted twice

A simple patch to disable the delete button until the file is deleted, so the user can delete the same photo or video twice.