Changeset 12926


Ignore:
Timestamp:
Sep 27, 2011, 2:34:04 AM (11 years ago)
Author:
livings124
Message:

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

Location:
trunk/web
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/web/index.html

    r12922 r12926  
    154154                                                <div class="title">Blocklist</div>
    155155                                                <div class="row"><div class="key"><input type="checkbox" id="blocklist-enabled"/><label for="blocklist-enabled">Enable blocklist:</label></div>
    156                                                                  <div class="value"><input type="text" id="blocklist-url"/></div></div>
     156                                                                 <div class="value"><input type="url" id="blocklist-url"/></div></div>
    157157                                                <div class="row"><div class="key" style="margin-top: 3px; font-size: smaller;">Blocklist has <span id="blocklist-size">?</span> rules</div>
    158158                                                                 <div class="value"><input type="button" id="blocklist-update-button" value="Update"/></div></div>
     
    368368                                                        <input type="file" name="torrent_files[]" id="torrent_upload_file" multiple="multiple" />
    369369                                                <label for="torrent_upload_url">Or enter a URL:</label>
    370                                                         <input type="text" id="torrent_upload_url"/>
     370                                                        <input type="url" id="torrent_upload_url"/>
    371371                                                        <input type="checkbox" id="torrent_auto_start" />
    372372                                                <label for="torrent_auto_start" id="auto_start_label">Start when added</label>
  • trunk/web/javascript/prefs-dialog.js

    r12881 r12926  
    206206
    207207                case 'text':
     208                case 'url':
     209                case 'email':
     210                case 'number':
     211                case 'search':
    208212                    e.focus(onControlFocused);
    209213                    e.blur(onControlBlurred);
     
    267271                    break;
    268272                case 'text':
     273                case 'url':
     274                case 'email':
     275                case 'number':
     276                case 'search':
    269277                    // don't change the text if the user's editing it.
    270278                    // it's very annoying when that happens!
Note: See TracChangeset for help on using the changeset viewer.