 # Operations for page elements.
 enableSaveButton = ->
   $("saveOptions").removeAttribute "disabled"
-
-saveOptions = ->
-  Option.all.map (option) -> option.save()
-  $("saveOptions").disabled = true
 
 # Display either "linkHintNumbers" or "linkHintCharacters", depending upon "filterLinkHints".
 maintainLinkHintsView = ->

  constructor: (field,enableSaveButton) ->
    super(field,enableSaveButton)
    @element.addEventListener "input", enableSaveButton
  populateElement: (value) -> @element.value = value
  # If the new value is not empty, then return it. Otherwise, restore the default value.
  readValueFromElement: -> if value = @element.value.trim() then value else @restoreToDefault()

  constructor: (field,enableSaveButton) ->
    super(field,enableSaveButton)
    @element.addEventListener "input", enableSaveButton
    @activateCtrlEnterListener @element
  populateElement: (value) -> @element.value = value
  readValueFromElement: -> @element.value.trim()

