           false
         return
       return
+      $deleteDraft = @$dialog.find 'a.delete-draft'
+        .click (e) ->
+          if confirm lang.youSure
+            key = $ this
+              .data 'draft'
+            data = drafts[key]
+
+            if data
+              store.remove key
+              self = $ this
+              self.hide 'slow', ->
+                self.remove()
+                alert lang.deleted
+                return
+
+            else
+              alert lang.noDraft
     return


    @initialize =  =>
      $container = if options.dialogsInBody then $(document.body) else $editor
      body = "<div class='list-group'>#{htmlList}</div>"

      @$dialog = ui.dialog(
        className: 'link-dialog'


    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
