mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-02-05 03:24:17 +00:00
fix keysSend default i'd broke a few minutes ago...
This commit is contained in:
parent
a98144f126
commit
f56f0315f4
@ -88,8 +88,9 @@ var TwisterOptions = function()
|
|||||||
player[0].play();
|
player[0].play();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.keysSendDefault = "ctrlenter";
|
||||||
this.keysSend = function() {
|
this.keysSend = function() {
|
||||||
$('#keysOpt select')[0].value = $.Options.getOption('keysSend',"ctrlenter");
|
$('#keysOpt select')[0].value = $.Options.getOption('keysSend',this.keysSendDefault);
|
||||||
|
|
||||||
$('#keysOpt select').on('change', function(){
|
$('#keysOpt select').on('change', function(){
|
||||||
$.Options.setOption(this.id, this.value);
|
$.Options.setOption(this.id, this.value);
|
||||||
@ -97,7 +98,7 @@ var TwisterOptions = function()
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.keyEnterToSend = function() {
|
this.keyEnterToSend = function() {
|
||||||
return $.Options.getOption('keysSend',"enter") == "enter";
|
return $.Options.getOption('keysSend',this.keysSendDefault) == "enter";
|
||||||
}
|
}
|
||||||
|
|
||||||
this.setLang = function() {
|
this.setLang = function() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user