Fluidbyte/Codiad — pull request #20 by lorefnon (2012-09-30 14:59:23+00:00)
Title: Bug-fix and precautionary measures to prevent loss of work.

Codiad has an active-files list which highlights unsaved files. Upon saving the file the highlighting is removed. However if the saving fails (maybe because of internet connection failure) the highlighting is removed anyways. Also no error notification is shown to the user.

This commit aims to fix this by adding a provision for an error notification upon failure of file submission and also it removes the changed status of active files only if the files were actually saved.

It addition if there are unsaved and a user attempts to close/refresh the window user is prompted about unsaved status and is provided the option to cancel. This is a precautionary measure against accidental data loss.