     Setting.set "dateFormat", @dateFormat.val()
     Setting.set "confirmDelete",  @confirmDelete.prop "checked"
     Setting.set "night",  @nightMode.prop "checked"
-
-  close: (e) =>
-    if $(e.target).hasClass "modal"
-      @el.removeClass "show"
-      setTimeout ( =>
-        @el.hide 0
-      ), 350
 
   tabSwitch: (e) =>
     @el.find(".current").removeClass "current"

    "change input": "save"
    "change select": "save"
    "click .clear-data": "clearData"
    "click": "close"
    "click .tabs li": "tabSwitch"
    "click .night-mode": "toggleNight"
    "click .language a": "changeLanguage"

    $("[data-value=" + Setting.get("language") + "]").addClass "selected"

  show: =>
    @el.modal()

  save: =>
    Setting.set "username", @username.val()
