From 4ea291622ade0cf109a0f41df34cc79616c9d707 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20=C5=A0taleker?= Date: Sun, 10 Mar 2024 19:10:37 +0100 Subject: [PATCH] debug --- ZpcBulletinBoard/wwwroot/css/boards-links/index.css | 4 ---- ZpcBulletinBoard/wwwroot/js/boards-links/index.js | 3 +++ 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/ZpcBulletinBoard/wwwroot/css/boards-links/index.css b/ZpcBulletinBoard/wwwroot/css/boards-links/index.css index 0b63949..872d0f4 100644 --- a/ZpcBulletinBoard/wwwroot/css/boards-links/index.css +++ b/ZpcBulletinBoard/wwwroot/css/boards-links/index.css @@ -95,8 +95,4 @@ width: 170px; margin-left: 15px; margin-top: 5px; -} - -.btn-tool{ - /* padding: 1px; */ } \ No newline at end of file diff --git a/ZpcBulletinBoard/wwwroot/js/boards-links/index.js b/ZpcBulletinBoard/wwwroot/js/boards-links/index.js index 4abcfd3..d23f941 100644 --- a/ZpcBulletinBoard/wwwroot/js/boards-links/index.js +++ b/ZpcBulletinBoard/wwwroot/js/boards-links/index.js @@ -48,6 +48,8 @@ function loadBoards(){ function allowDropPage(ev) { console.log('allowDrop'); + console.log({tmp: ev.dataTransfer}); + console.log({tmp2: ev.dataTransfer.getData("test")}); if (ev.dataTransfer.getData("idPage")){ ev.preventDefault(); } @@ -56,6 +58,7 @@ function allowDropPage(ev) { function dragPage(ev, el) { console.log('drag'); ev.dataTransfer.setData("idPage", $(el).attr('data-id')); + ev.dataTransfer.setData("test",1); }