From d8c5031ff9350b7bcfd25e590407aadc98c6fb83 Mon Sep 17 00:00:00 2001 From: Griatch Date: Tue, 9 Jun 2015 12:49:58 +0200 Subject: [PATCH] Updated js version for better css (not currently working though --- .../web/webclient/static/webclient/js/evennia.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/evennia/web/webclient/static/webclient/js/evennia.js b/evennia/web/webclient/static/webclient/js/evennia.js index 068a9c0a4..c99dcf79f 100644 --- a/evennia/web/webclient/static/webclient/js/evennia.js +++ b/evennia/web/webclient/static/webclient/js/evennia.js @@ -52,16 +52,16 @@ toClass = function(divclass, data) { //console.log("toClass: " + divclass + " " + data); $("." + divclass).each(function() { switch (divclass) { - case "textarea": + case "textoutput": // update the bottom of the normal text area // and scroll said area. var oldtext = $.trim($(this).val()); $(this).val(oldtext + "\n" + data); - $(this).scrollTop($(this)[0].scrollHeight); + //$(this).scrollTop($(this)[0].scrollHeight); break; - case "lookarea": + case "lookoutput": // update the look text box - $(this).val($.trim(data)); + $(this).val(data); break; } }); @@ -171,9 +171,9 @@ initialize = function() { dataSend("inputfield", msg); if (echo_to_textarea) { // echo to textfield - toClass("textarea", msg); - toClass("lookarea", msg); - toClass("listarea", msg); + toClass("textoutput", msg); + toClass("lookoutput", msg); + toClass("listoutput", msg); } }); @@ -245,7 +245,7 @@ initialize = function() { // make sure textarea fills surrounding div //$('textarea').css({height:(300-$('form').height())+'px'}); - //$('textarea').css({height:"inherit", resize:"vertical"}); + //$('textarea').css({'height':"100%"}); // configurations $(".echo").on("change", function(event) {