             context.invoke 'sDrafts.show'
             false
 
-        button.render();
+        button.render
 
-      @initialize : ->
-        $container = options.dialogsInBody ? $(document.body) : $editor
-        body = '<div class="form-group">' + '<label>' + lang.provideName + '</label>' + '<input class="note-link-imgUrl form-control" type="text" /></div>'
+      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


        @$dialog.render
        @$dialog.appendTo $container

}));

((factory) ->
  if typeof define == 'function' and define.amd
    define [ 'jquery' ], factory
  else if typeof module == 'object' and module.exports
    module.exports = factory(require('jquery'))
  else
    factory window.jQuery
  return
) ($) ->

  $.extend $.summernote.options,
  sDrafts:
    storePrefix:'sDrafts'

  $.extend $.summernote.lang,
  'en-US':
