This commit is contained in:
Scott Erickson 2014-01-06 17:15:24 -08:00
commit a9c70f9a7d

View file

@ -16,7 +16,7 @@ module.exports = class RootView extends CocoView
events:
"click #logout-button": "logoutAccount"
'change .language-dropdown': 'showDiplomatSuggestionModal'
shortcuts:
'backspace, delete': 'preventBackspace'
# 'backspace': 'preventBackspace'
@ -56,7 +56,7 @@ module.exports = class RootView extends CocoView
code2 isnt code and code2.split('-')[0] is code)
for code, localeInfo of locale when not (code in genericCodes) or code is preferred
$select.append(
$("<option></option>").attr("value", code).text(localeInfo.nativeDescription))
$("<option></option>").val(code).text(localeInfo.nativeDescription))
$select.val(preferred).fancySelect()
showDiplomatSuggestionModal: ->
@ -75,4 +75,4 @@ module.exports = class RootView extends CocoView
errors = JSON.parse(res.responseText)
console.warn "Error saving language:", errors
res.success (model, response, options) ->
#console.log "Saved language:", newLang
#console.log "Saved language:", newLang