** Warning ** Make a backup copy of any files before you change them so that you can put them back if you make a mistake!
As root, edit transmission.js with your favorite text editor. On my system, transmission.js is located in /usr/share/transmission/web/javascript
Near the top of transmission.js (under the heading "// Set up user events") add the following line:
Code: Select all
$('#torrent_upload_url').keypress($.proxy(this.confirmUploadEnter,this));
Code: Select all
confirmUploadClicked: function() {
this.uploadTorrentFile(true);
this.hideUploadDialog();
},
Code: Select all
confirmUploadEnter: function (e) {
if (e.which == 13) {
this.uploadTorrentFile(true);
this.hideUploadDialog();
}
},
Code: Select all
...
confirmUploadClicked: function() {
this.uploadTorrentFile(true);
this.hideUploadDialog();
},
confirmUploadEnter: function (e) {
if (e.which == 13) {
this.uploadTorrentFile(true);
this.hideUploadDialog();
}
},
hideMoveDialog: function() {
...
I would love for this tiny feature to be available in future releases.
** Disclaimer ** This worked for me but might not for you. I'm not a web developer. I can use Google and be dangerous with what I find. There may be a better/cleaner way to accomplish this. If you can clean up or streamline this code, please do. Remember to make a backup copy of any files before you modify them! I take no responsibility if you break your stuff. But seriously it worked for me