 interval_id = 0
+
+save_draft_item = ->
+  key = $(this).attr('draft-key')
+  localStorage.setItem(key, $(this).val()) if key != '' and $(this).val() != ''
+  localStorage.removeItem(key) if $(this).val() == ''
 
 $(document).on 'page:change', ->
   if $('.need-save-draft').length

  interval_id = 0
  $(this).parents('form').find('.need-save-draft').each ->
    localStorage.removeItem($(this).attr('draft-key'))


    $('.need-save-draft').each ->
      $(this).val(localStorage.getItem($(this).attr('draft-key')))

    save_draft_func = ->
      if interval_id
