From e19994c75699700c614f3735b5681547b972ec63 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 18 Jan 2022 00:07:45 +0100 Subject: [PATCH] Fix drag event on week view --- htdocs/comm/action/index.php | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/htdocs/comm/action/index.php b/htdocs/comm/action/index.php index 0746ca13a17..4d6a032492f 100644 --- a/htdocs/comm/action/index.php +++ b/htdocs/comm/action/index.php @@ -570,7 +570,7 @@ if (!empty($conf->use_javascript_ajax)) { // If javascript on $s .= 'console.log("found parent div.dayevent with id = "+newval);'."\n"; $s .= 'var frm=jQuery("#searchFormList");'."\n"; $s .= 'var newurl = ui.item.find("a.cal_event").attr("href");'."\n"; - $s .= 'console.log(newurl);'."\n"; + $s .= 'console.log("Found url on href of a.cal_event"+newurl+", we submit form with actionmove=mupdate");'."\n"; $s .= 'frm.attr("action", newurl).children("#newdate").val(newval);frm.submit();}'."\n"; $s .= '});'."\n"; } @@ -1393,7 +1393,7 @@ if (empty($mode) || $mode == 'show_month') { // View by month print ''; print '
'; - print ''; + print '
'; print ' '; // Column title of weeks numbers echo ' '; @@ -1482,7 +1482,7 @@ if (empty($mode) || $mode == 'show_month') { // View by month print ''; print ''; - print ''; + print ''; print ''; } elseif ($mode == 'show_week') { // View by week @@ -1502,7 +1502,7 @@ if (empty($mode) || $mode == 'show_month') { // View by month print ''; print '
'; - print '
#
'; + print '
'; print ' '; $i = 0; while ($i < 7) { @@ -1544,10 +1544,9 @@ if (empty($mode) || $mode == 'show_month') { // View by month print ''; echo ''; - echo ''; + echo ''; echo ''; -} else // View by day -{ +} else { // View by day $newparam = $param; // newparam is for birthday links $newparam = preg_replace('/mode=show_month&?/i', '', $newparam); $newparam = preg_replace('/mode=show_week&?/i', '', $newparam);