Skip to content
Snippets Groups Projects
Commit be38e8b3 authored by Jared Hancock's avatar Jared Hancock
Browse files

redactor: Don't show [draft saved] for empty content

parent c54873a3
No related branches found
No related tags found
No related merge requests found
......@@ -77,7 +77,8 @@ RedactorPlugins.draft = {
});
},
setupDraftUpdate: function(data) {
this.$draft_saved.show().delay(5000).fadeOut();
if (this.get())
this.$draft_saved.show().delay(5000).fadeOut();
// Slight workaround. Signal the 'keyup' event normally signaled
// from typing in the <textarea>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment