mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2026-04-22 16:42:14 +00:00
Feature Request: Send text instead of files
This commit is contained in:
@@ -23,13 +23,14 @@ Chat.FileButtonBehaviorImpl = {
|
||||
var files = this.fileInput.files;
|
||||
this.notifyFilesSelection(files);
|
||||
}.bind(this);
|
||||
},
|
||||
listeners: {
|
||||
'tap': '_openDialog'
|
||||
},
|
||||
_openDialog: function() {
|
||||
this.fileInput.value = null;
|
||||
this.fileInput.click();
|
||||
this.addEventListener('click', function(e) {
|
||||
var button = e.which || e.button;
|
||||
if (button !== 1) {
|
||||
return;
|
||||
}
|
||||
this.fileInput.value = null;
|
||||
this.fileInput.click();
|
||||
}.bind(this), false);
|
||||
}
|
||||
};
|
||||
Chat.FileButtonBehavior = [Chat.FileButtonBehaviorImpl, Chat.FileSelectionBehavior];
|
||||
|
||||
Reference in New Issue
Block a user