Fossil SCM

Removed some extraneous console debug output.

stephan 2021-09-21 16:28 trunk
Commit 8663dde1df9a2a126e44d6012c3980aa98dc49c7aa9aab4bad01e2d7c8ad1d8d
1 file changed +1 -3
+1 -3
--- src/chat.js
+++ src/chat.js
@@ -849,12 +849,10 @@
849849
this.$eMsg = tgtMsg;
850850
this.refresh();
851851
}
852852
}/*f.popup*/;
853853
}/*end static init*/
854
- console.debug("event =",ev);
855
- console.debug("event.target =",ev.target);
856854
let theMsg = ev.target;
857855
while( theMsg && !theMsg.classList.contains('message-widget')){
858856
theMsg = theMsg.parentNode;
859857
}
860858
if(theMsg) f.popup.show(theMsg);
@@ -908,11 +906,11 @@
908906
const items = event.clipboardData.items,
909907
item = items[0];
910908
if(!item || !item.type) return;
911909
else if('file'===item.kind){
912910
updateDropZoneContent(false/*clear prev state*/);
913
- updateDropZoneContent(items[0].getAsFile());
911
+ updateDropZoneContent(item.getAsFile());
914912
}
915913
}, false);
916914
/* Add help button for drag/drop/paste zone */
917915
Chat.e.inputFile.parentNode.insertBefore(
918916
F.helpButtonlets.create(
919917
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button