Updated js version for better css (not currently working though
This commit is contained in:
parent
fa370510da
commit
d8c5031ff9
1 changed files with 8 additions and 8 deletions
|
|
@ -52,16 +52,16 @@ toClass = function(divclass, data) {
|
||||||
//console.log("toClass: " + divclass + " " + data);
|
//console.log("toClass: " + divclass + " " + data);
|
||||||
$("." + divclass).each(function() {
|
$("." + divclass).each(function() {
|
||||||
switch (divclass) {
|
switch (divclass) {
|
||||||
case "textarea":
|
case "textoutput":
|
||||||
// update the bottom of the normal text area
|
// update the bottom of the normal text area
|
||||||
// and scroll said area.
|
// and scroll said area.
|
||||||
var oldtext = $.trim($(this).val());
|
var oldtext = $.trim($(this).val());
|
||||||
$(this).val(oldtext + "\n" + data);
|
$(this).val(oldtext + "\n" + data);
|
||||||
$(this).scrollTop($(this)[0].scrollHeight);
|
//$(this).scrollTop($(this)[0].scrollHeight);
|
||||||
break;
|
break;
|
||||||
case "lookarea":
|
case "lookoutput":
|
||||||
// update the look text box
|
// update the look text box
|
||||||
$(this).val($.trim(data));
|
$(this).val(data);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
@ -171,9 +171,9 @@ initialize = function() {
|
||||||
dataSend("inputfield", msg);
|
dataSend("inputfield", msg);
|
||||||
if (echo_to_textarea) {
|
if (echo_to_textarea) {
|
||||||
// echo to textfield
|
// echo to textfield
|
||||||
toClass("textarea", msg);
|
toClass("textoutput", msg);
|
||||||
toClass("lookarea", msg);
|
toClass("lookoutput", msg);
|
||||||
toClass("listarea", msg);
|
toClass("listoutput", msg);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -245,7 +245,7 @@ initialize = function() {
|
||||||
|
|
||||||
// make sure textarea fills surrounding div
|
// make sure textarea fills surrounding div
|
||||||
//$('textarea').css({height:(300-$('form').height())+'px'});
|
//$('textarea').css({height:(300-$('form').height())+'px'});
|
||||||
//$('textarea').css({height:"inherit", resize:"vertical"});
|
//$('textarea').css({'height':"100%"});
|
||||||
|
|
||||||
// configurations
|
// configurations
|
||||||
$(".echo").on("change", function(event) {
|
$(".echo").on("change", function(event) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue