   $('.delete_yes_btn').live 'click', ->
     opt = templates.find 'option:selected'
     if opt.data('readOnly') isnt 'true'
+      title = opt.text()
       opt.remove()
       templates.change().focus()
       saveTemplates()
+      analytics.track 'Templates', 'Deleted', title
     $(document).trigger 'close.facebox'
     updateToolbarTemplates()
   # Move the selected option down once when the *Down* control is clicked.

      ext.SHORTCUT_MODIFIERS
    # Initialize all faceboxes.
    $('a[facebox]').click ->
      $.facebox div: $(this).attr 'facebox'
    $(document).bind 'reveal.facebox', ->
      facebox = $ '#facebox > .popup > .content'
      facebox.css 'margin-right',

    for loc in LOCALES when loc is uiLocale
      locale = uiLocale
      break
    $('#template_help').load utils.url("pages/templates_#{locale}.html"), ->
      $('.template-section:first-child').click()
      $('.version-replace').text ext.version
    # Load the current option values.
    load()
    $('#template_shortcut_modifier').html if ext.isThisPlatform 'mac'
