       timeSection.append new GMailUI.Separator
       timeSection.append new GMailUI.PopupLabel __msg 'menuTime'
 
-
-      #unless _.isEmpty @lastUsed
-      #  lastUsedSection = timeSection.append new GMailUI.Section
-
-      #  _.each @lastUsed, (tuple) =>
-      #    key = tuple.key
-      #    time = tuple.time
-      #    # Remove the last used presets from the list
-      #    presets[key] = _.without presets[key], time if presets[key]
-
-      #    [label, title] = @getTexts key, time
-      #    button = lastUsedSection.append new GMailUI.Button label, title
-      #    timeFn = @generateTimeFn key
-      #    button.on 'click', (e) =>
-      #      @storeLastUsed key, time
-      #      wen = timeFn time
-      #      log "schedule: #{time}, #{key}: #{wen}"
-      #      schedule wen
-      #      return
-      #    return
-      #  lastUsedSection.append new GMailUI.Separator
-
-
-      #presetItem = timeSection.append (new GMailUI.PopupMenuItem presetMenu, (__msg 'menuTimePresetCloseFuture'),   '', '',  true)
       timeSection.append   (new GMailUI.PopupMenuItem pickerMenu, (__msg 'menuTimePresetSpecifiedDate'),  '',  '',  true)
       timeSection.append new GMailUI.Separator
 

      console.log.apply console, args
    return

  #__msg = (args...) ->
  #  ret = chrome.i18n.getMessage.apply chrome.i18n, args
  #  log args, ret
  #  ret
  __msg = chrome.i18n.getMessage

  class M

      $.ajax
        url:       @getServiceURL() + M.SCHEDULE_SUFFIX
        #type:     'POST'
        dataType:  'json'
        data:      data
        success:   (resp, textStatus, jqXHR) =>
          @onScheduleSuccess resp, data
          return
        error:     (jqXHR, textStatus, errorThrown) =>
          @onScheduleError textStatus, data, errorThrown, jqXHR.responseText
          return
        complete:  (jqXHR, textStatus) ->
          resetIcon?() unless archive
          return

