From ab9ff980efdbc53d6e05cd4e64f00142f3e52ad8 Mon Sep 17 00:00:00 2001 From: chylex <contact@chylex.com> Date: Fri, 19 Jan 2018 06:05:46 +0100 Subject: [PATCH] Fix dragging twitter links over columns from some sources or w/ url parameters not working --- Resources/Scripts/code.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Resources/Scripts/code.js b/Resources/Scripts/code.js index 0ed6ab77..1ec31fd6 100644 --- a/Resources/Scripts/code.js +++ b/Resources/Scripts/code.js @@ -759,14 +759,14 @@ // Block: Allow drag & drop behavior for dropping links on columns to open their detail view. // (function(){ - const tweetRegex = /^https?:\/\/twitter\.com\/[A-Za-z0-9_]+\/status\/(\d+)\/?$/; + const tweetRegex = /^https?:\/\/twitter\.com\/[A-Za-z0-9_]+\/status\/(\d+)\/?\??/; const selector = "section.js-column"; let isDraggingValid = false; const events = { dragover: function(e){ - e.originalEvent.dataTransfer.dropEffect = isDraggingValid ? "move" : "none"; + e.originalEvent.dataTransfer.dropEffect = isDraggingValid ? "all" : "none"; e.preventDefault(); e.stopPropagation(); },