javascript tests

This commit is contained in:
Marko Oldenburg 2020-01-27 08:20:03 +01:00
parent 61375475a3
commit f1129d5a8f

View File

@ -1092,8 +1092,8 @@ sub getCallbackList($$) {
"NUKIBridge ($name) - created Table with log file" );
my $j1 = '<script type=\"text/javascript\">{';
$j1 .= 'function callbackRemove(){}';
my $j1 = '<script language=\"javascript\" type=\"text/javascript\">{';
$j1 .= "function callbackRemove(){FW_cmd(FW_root+'?cmd=get $name callbackList&XHR=1')}";
$j1 .= '}</script>';
# FW_cmd(FW_root+"?cmd="+type+" "+dev+
@ -1114,7 +1114,7 @@ sub getCallbackList($$) {
if ( scalar( @{ $decode_json->{callbacks} } ) > 0 ) {
foreach my $cb ( @{ $decode_json->{callbacks} } ) {
$ret .= '<td>' . $cb->{url} . '</td>';
$ret .= '<td><input disabled title=\"callbackRemove\" name=\"callbackRemove\" type=\"button\" value=\"Remove\" onclick =\"javascript: callbackRemove()\"></td>';
$ret .= "<td><input title=\"CallbackRemove\" name=\"Remove\" type=\"button\" value=\"Remove\" onclick=\" javascript: callbackRemove() \"></td>";
$ret .= '</tr>';
}
}