2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 12:49:34 +00:00

95_Babble.pm: Bugfix

git-svn-id: https://svn.fhem.de/fhem/trunk@16246 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
phenning 2018-02-23 14:47:47 +00:00
parent ad80dde270
commit d107a280b2
2 changed files with 6 additions and 3 deletions

View File

@ -53,7 +53,7 @@ if (eval {require RiveScript;1;} ne 1) {
my $babblelinkname = "babbles"; # link text my $babblelinkname = "babbles"; # link text
my $babblehiddenroom = "babbleRoom"; # hidden room my $babblehiddenroom = "babbleRoom"; # hidden room
my $babblepublicroom = "babble"; # public room my $babblepublicroom = "babble"; # public room
my $babbleversion = "1.24"; my $babbleversion = "1.25";
my %babble_transtable_EN = ( my %babble_transtable_EN = (
"ok" => "OK", "ok" => "OK",
@ -1931,7 +1931,8 @@ sub Babble_Html($)
$ret .= "var newplace = '<select name=\"d_place\">".Babble_getplaces($hash,"html","none")."</select>';\n"; $ret .= "var newplace = '<select name=\"d_place\">".Babble_getplaces($hash,"html","none")."</select>';\n";
$ret .= "var newverbs = '<select name=\"d_verb\">".Babble_getverbs($hash, "html","none")."</select>';\n"; $ret .= "var newverbs = '<select name=\"d_verb\">".Babble_getverbs($hash, "html","none")."</select>';\n";
$ret .= "var newtargs = '<select name=\"d_verbpart\">".Babble_getwords($hash,"targets","html","none")."</select>';\n"; $ret .= "var newtargs = '<select name=\"d_verbpart\">".Babble_getwords($hash,"targets","html","none")."</select>';\n";
$ret .= "var newfield = '<input type=\"text\" name=\"d_command\" size=\"30\" maxlength=\"512\" value=\"FHEM command\"/>';\n"; $ret .= "var newfield = '<input type=\"text\" name=\"d_command\" size=\"30\" maxlength=\"512\" value=\"FHEM command\">';\n";
$ret .= "var newcheck = '<input type=\"checkbox\" name=\"d_confirm\">';\n";
$rot .= "</script>\n"; $rot .= "</script>\n";

View File

@ -1,6 +1,6 @@
//######################################################################################## //########################################################################################
// babble.js // babble.js
// Version 1.2 // Version 1.25
// See 95_Babble for licensing // See 95_Babble for licensing
//######################################################################################## //########################################################################################
//# Prof. Dr. Peter A. Henning //# Prof. Dr. Peter A. Henning
@ -181,11 +181,13 @@ function babble_addrow(name, devx, rowx) {
var cell4 = row.insertCell(4); var cell4 = row.insertCell(4);
var cell5 = row.insertCell(5); var cell5 = row.insertCell(5);
var cell6 = row.insertCell(6); var cell6 = row.insertCell(6);
var cell7 = row.insertCell(7);
//copy from existing row if such a row exists //copy from existing row if such a row exists
cell2.innerHTML = newplace; cell2.innerHTML = newplace;
cell3.innerHTML = newverbs; cell3.innerHTML = newverbs;
cell4.innerHTML = newtargs; cell4.innerHTML = newtargs;
cell5.innerHTML = newfield; cell5.innerHTML = newfield;
cell6.innerHTML = newcheck;
} }
function babble_remrow(name, devx, rowx) { function babble_remrow(name, devx, rowx) {