Missed some var declarations
This commit is contained in:
parent
f12adcf976
commit
f907165dd3
1 changed files with 3 additions and 3 deletions
|
|
@ -76,7 +76,7 @@ var input_history = function() {
|
||||||
|
|
||||||
// Grab text from inputline and send to Evennia
|
// Grab text from inputline and send to Evennia
|
||||||
function doSendText() {
|
function doSendText() {
|
||||||
inputfield = $("#inputfield");
|
var inputfield = $("#inputfield");
|
||||||
var outtext = inputfield.val();
|
var outtext = inputfield.val();
|
||||||
if (outtext.length > 7 && outtext.substr(0, 7) == "##send ") {
|
if (outtext.length > 7 && outtext.substr(0, 7) == "##send ") {
|
||||||
// send a specific oob instruction
|
// send a specific oob instruction
|
||||||
|
|
@ -97,7 +97,7 @@ function doSendText() {
|
||||||
function onKeydown (event) {
|
function onKeydown (event) {
|
||||||
var code = event.which;
|
var code = event.which;
|
||||||
var history_entry = null;
|
var history_entry = null;
|
||||||
inputfield = $("#inputfield");
|
var inputfield = $("#inputfield");
|
||||||
inputfield.focus();
|
inputfield.focus();
|
||||||
|
|
||||||
if (code === 13) { // Enter key sends text
|
if (code === 13) { // Enter key sends text
|
||||||
|
|
@ -136,7 +136,7 @@ var resizeInputField = function () {
|
||||||
|
|
||||||
// Check to see if we should change the height of the input area
|
// Check to see if we should change the height of the input area
|
||||||
return function () {
|
return function () {
|
||||||
inputfield = $("#inputfield");
|
var inputfield = $("#inputfield");
|
||||||
var scrollh = inputfield.prop("scrollHeight");
|
var scrollh = inputfield.prop("scrollHeight");
|
||||||
var clienth = inputfield.prop("clientHeight");
|
var clienth = inputfield.prop("clientHeight");
|
||||||
var newh = 0;
|
var newh = 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue