 
   click:(e)->
     @destroy() if $(e.target).is(".closeModal")
+    if $(e.target).is(".showHelp")
+      {helpContent} = @getOptions()
+      if helpContent
+        helpContent = KD.utils.applyMarkdown helpContent
+        new KDModalView
+          # title   : "Help"
+          cssClass : "help-dialog"
+          overlay  : yes
+          content  : "<div class='modalformline'><p>#{helpContent}</p></div>"
+
     # @getSingleton("windowController").setKeyView @ ---------> disabled because KDEnterinputView was not working in KDmodal
 
   keyUp:(e)->

    @$('.kdmodal-content').css 'max-height', winHeight - 200
    @setY (winHeight - @getHeight())/2

  putOverlay:()->
    @$overlay = $ "<div/>"
      class : "kdoverlay"
    @$overlay.hide()

    options.draggable    or= handle : ".kdmodal-title"
    # TO BE IMPLEMENTED
    options.resizable    or= no            # a Boolean

    options.helpContent  or= null
    options.helpTitle    or= "Need help?"

    super options, data

