From 7f13ca69bb71a0eb477cbf4f4bfcd08b2843bf9b Mon Sep 17 00:00:00 2001 From: polo Date: Mon, 31 Mar 2025 22:50:11 +0200 Subject: inversion de deux articles --- src/view/ArticleBuilder.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/view/ArticleBuilder.php') diff --git a/src/view/ArticleBuilder.php b/src/view/ArticleBuilder.php index 989da0d..6c2f63c 100644 --- a/src/view/ArticleBuilder.php +++ b/src/view/ArticleBuilder.php @@ -34,11 +34,11 @@ class ArticleBuilder extends AbstractBuilder $modify_js = 'onclick="openEditor(\'' . $id . '\')"'; $modify_article = '

' . "\n"; - $up_link = new URL(['page' => CURRENT_PAGE, 'id' => $id, 'action' => 'position_up']); - $up_button = '

' . "\n"; + $up_js = 'onclick="switchPositions(\'' . $id . '\', \'up\')"'; + $up_button = '

' . "\n"; - $down_link = new URL(['page' => CURRENT_PAGE, 'id' => $id, 'action' => 'position_down']); - $down_button = '

' . "\n"; + $down_js = 'onclick="switchPositions(\'' . $id . '\', \'down\')"'; + $down_button = '

' . "\n"; $delete_js = 'onclick="deleteArticle(\'' . $id . '\')"'; $delete_article = '

' . "\n"; -- cgit v1.2.3