             div.innerHTML = data.body
             context.invoke('editor.insertNode', div)
             alert lang.loaded
-            @destroy
-            @$dialog.remove()
 
           else
             alert lang.noDraft
+
+          @destroy()
+          @$dialog.remove()
           false
 
       $deleteDraft = @$dialog.find 'a.delete-draft'


    for key, draft of drafts
      do ->
        htmlList += "<li class='list-group-item'><a href='#' class='note-draft' data-draft='#{key}'>#{draft.name} - <small>#{draft.sDate}</a></small><a href='#' class='label label-danger pull-right delete-draft' data-draft='#{key}'>#{lang.deleteDraft}</a></li>"

    context.memo 'button.sDraftsLoad', () ->
      button = ui.button

  $.extend $.summernote.options,
  sDrafts:
    storePrefix:'sDrafts'
    dateFormat: null
    saveIcon: null
    loadIcon: null

  $.extend $.summernote.lang['en-US'],
    sDrafts :
