mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-04 17:19:47 -04:00
Merge branch 'master' of https://github.com/codecombat/codecombat
This commit is contained in:
commit
a9c70f9a7d
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue