 
         @$dialog.render
         @$dialog.appendTo $container
+        return
 
-}));
+      destroy = () ->
+        ui.hideDialog @$dialog
+          .remove
+        return
+
+      show = () ->
+        ui.showDialog(@$dialog);
+        draftName = @$dialog.find '.note-draftName'
+          .val
+        $saveBtn = @$dialog.find '.note-link-btn'
+          .click (e) =>
+            e.preventDefault
+            @saveDraft draftName
+            false
+
+      saveDraft = (name) ->
+
+      return

      options = context.options
      lang = options.langInfo.sDrafts
      $editor = context.layoutInfo.editor
      drafts = store.get(options.storePrefix)

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

            context.invoke 'sDrafts.show'
            false

        button.render

      initialize : () ->
        $container = if options.dialogsInBody then $(document.body) else $editor
        body = '<div class="form-group">' + '<label>' + lang.provideName + '</label>' + '<input class="note-draftName form-control" type="text" /></div>'
        footer = '<button href="#" class="btn btn-primary note-link-btn">' + lang.save + '</button>'

        @$dialog = ui.dialog
