mirror of
https://github.com/transmission/transmission.git
synced 2025-12-20 10:28:32 +00:00
#4517 mark "add torrent" and "blacklist" url fields as html5 url fields
This commit is contained in:
@@ -205,6 +205,10 @@ function PrefsDialog(remote) {
|
||||
break;
|
||||
|
||||
case 'text':
|
||||
case 'url':
|
||||
case 'email':
|
||||
case 'number':
|
||||
case 'search':
|
||||
e.focus(onControlFocused);
|
||||
e.blur(onControlBlurred);
|
||||
|
||||
@@ -266,6 +270,10 @@ function PrefsDialog(remote) {
|
||||
setGroupEnabled(key, val);
|
||||
break;
|
||||
case 'text':
|
||||
case 'url':
|
||||
case 'email':
|
||||
case 'number':
|
||||
case 'search':
|
||||
// don't change the text if the user's editing it.
|
||||
// it's very annoying when that happens!
|
||||
if (e[0] !== document.activeElement)
|
||||
|
||||
Reference in New Issue
Block a user