From 61375475a343110a44db3195934cc93cd17528d4 Mon Sep 17 00:00:00 2001 From: Marko Oldenburg Date: Mon, 20 Jan 2020 10:15:20 +0100 Subject: [PATCH] first step to use java script for delete Callback URL --- 73_NUKIBridge.pm | 44 +++++++++++++++++++++----------------------- 1 file changed, 21 insertions(+), 23 deletions(-) diff --git a/73_NUKIBridge.pm b/73_NUKIBridge.pm index ec039fc..e32a357 100755 --- a/73_NUKIBridge.pm +++ b/73_NUKIBridge.pm @@ -1091,32 +1091,30 @@ sub getCallbackList($$) { Log3( $name, 4, "NUKIBridge ($name) - created Table with log file" ); - my $space = ' '; - my $aHref; - my $header = '' - . '
Callback List
'; - my $ret = $header.'
'; - $ret .= ''; - $ret .= ''; - $ret .= ''; - $ret .= ''; - $ret .= ''; + my $j1 = ''; + +# FW_cmd(FW_root+"?cmd="+type+" "+dev+ +# (params[0]=="state" ? "":" "+params[0])+" "+arg+"&XHR=1"); + + + my $header = ''; + my $footer = ''; + + my $ret = '
Callback List
' + . '
URLRemove
'; - $ret .= '
' + . '' + . '' + . '' + . '' + . ''; if ( scalar( @{ $decode_json->{callbacks} } ) > 0 ) { foreach my $cb ( @{ $decode_json->{callbacks} } ) { - $aHref = - "{host} - . "/fhem?cmd=set+" - . $name - . "+callbackRemove+" - . $cb->{id} - . $::FW_CSRF - . "\">X"; - $ret .= ''; - $ret .= ''; + $ret .= ''; $ret .= ''; } } @@ -1128,9 +1126,9 @@ sub getCallbackList($$) { } $ret .= '
URLRemove
' . $cb->{url} . ''.$aHref.'
'; + $ret .= '
'; - asyncOutput( $param->{cl}, $ret ) + asyncOutput( $param->{cl}, $header . $ret . $j1 . $footer ) if ( $param->{cl} and $param->{cl}{canAsyncOutput} ); return; }