#4517 mark "add torrent" and "blacklist" url fields as html5 url fields

This commit is contained in:
Mitchell Livingston
2011-09-27 02:34:04 +00:00
parent 0543d53500
commit cee778d694
2 changed files with 10 additions and 2 deletions

View File

@@ -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)