Fossil SCM
Removed some extraneous console debug output.
Commit
8663dde1df9a2a126e44d6012c3980aa98dc49c7aa9aab4bad01e2d7c8ad1d8d
Parent
fb9026e2648cec2…
1 file changed
+1
-3
+1
-3
| --- src/chat.js | ||
| +++ src/chat.js | ||
| @@ -849,12 +849,10 @@ | ||
| 849 | 849 | this.$eMsg = tgtMsg; |
| 850 | 850 | this.refresh(); |
| 851 | 851 | } |
| 852 | 852 | }/*f.popup*/; |
| 853 | 853 | }/*end static init*/ |
| 854 | - console.debug("event =",ev); | |
| 855 | - console.debug("event.target =",ev.target); | |
| 856 | 854 | let theMsg = ev.target; |
| 857 | 855 | while( theMsg && !theMsg.classList.contains('message-widget')){ |
| 858 | 856 | theMsg = theMsg.parentNode; |
| 859 | 857 | } |
| 860 | 858 | if(theMsg) f.popup.show(theMsg); |
| @@ -908,11 +906,11 @@ | ||
| 908 | 906 | const items = event.clipboardData.items, |
| 909 | 907 | item = items[0]; |
| 910 | 908 | if(!item || !item.type) return; |
| 911 | 909 | else if('file'===item.kind){ |
| 912 | 910 | updateDropZoneContent(false/*clear prev state*/); |
| 913 | - updateDropZoneContent(items[0].getAsFile()); | |
| 911 | + updateDropZoneContent(item.getAsFile()); | |
| 914 | 912 | } |
| 915 | 913 | }, false); |
| 916 | 914 | /* Add help button for drag/drop/paste zone */ |
| 917 | 915 | Chat.e.inputFile.parentNode.insertBefore( |
| 918 | 916 | F.helpButtonlets.create( |
| 919 | 917 |
| --- src/chat.js | |
| +++ src/chat.js | |
| @@ -849,12 +849,10 @@ | |
| 849 | this.$eMsg = tgtMsg; |
| 850 | this.refresh(); |
| 851 | } |
| 852 | }/*f.popup*/; |
| 853 | }/*end static init*/ |
| 854 | console.debug("event =",ev); |
| 855 | console.debug("event.target =",ev.target); |
| 856 | let theMsg = ev.target; |
| 857 | while( theMsg && !theMsg.classList.contains('message-widget')){ |
| 858 | theMsg = theMsg.parentNode; |
| 859 | } |
| 860 | if(theMsg) f.popup.show(theMsg); |
| @@ -908,11 +906,11 @@ | |
| 908 | const items = event.clipboardData.items, |
| 909 | item = items[0]; |
| 910 | if(!item || !item.type) return; |
| 911 | else if('file'===item.kind){ |
| 912 | updateDropZoneContent(false/*clear prev state*/); |
| 913 | updateDropZoneContent(items[0].getAsFile()); |
| 914 | } |
| 915 | }, false); |
| 916 | /* Add help button for drag/drop/paste zone */ |
| 917 | Chat.e.inputFile.parentNode.insertBefore( |
| 918 | F.helpButtonlets.create( |
| 919 |
| --- src/chat.js | |
| +++ src/chat.js | |
| @@ -849,12 +849,10 @@ | |
| 849 | this.$eMsg = tgtMsg; |
| 850 | this.refresh(); |
| 851 | } |
| 852 | }/*f.popup*/; |
| 853 | }/*end static init*/ |
| 854 | let theMsg = ev.target; |
| 855 | while( theMsg && !theMsg.classList.contains('message-widget')){ |
| 856 | theMsg = theMsg.parentNode; |
| 857 | } |
| 858 | if(theMsg) f.popup.show(theMsg); |
| @@ -908,11 +906,11 @@ | |
| 906 | const items = event.clipboardData.items, |
| 907 | item = items[0]; |
| 908 | if(!item || !item.type) return; |
| 909 | else if('file'===item.kind){ |
| 910 | updateDropZoneContent(false/*clear prev state*/); |
| 911 | updateDropZoneContent(item.getAsFile()); |
| 912 | } |
| 913 | }, false); |
| 914 | /* Add help button for drag/drop/paste zone */ |
| 915 | Chat.e.inputFile.parentNode.insertBefore( |
| 916 | F.helpButtonlets.create( |
| 917 |