| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html i18n-values="dir:textdirection"> | 2 <html i18n-values="dir:textdirection"> |
| 3 <head> | 3 <head> |
| 4 <link rel="stylesheet" href="dialog.css"> | 4 <link rel="stylesheet" href="dialog.css"> |
| 5 <style> | 5 <style> |
| 6 body { | 6 body { |
| 7 margin: 10px 10px 0 10px; | 7 margin: 10px 10px 0 10px; |
| 8 -webkit-user-select: none; | 8 -webkit-user-select: none; |
| 9 } | 9 } |
| 10 | 10 |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 } | 77 } |
| 78 } | 78 } |
| 79 | 79 |
| 80 function setAutofillCredentials(username, password) { | 80 function setAutofillCredentials(username, password) { |
| 81 $('username').value = username; | 81 $('username').value = username; |
| 82 $('password').value = password; | 82 $('password').value = password; |
| 83 } | 83 } |
| 84 | 84 |
| 85 function load() { | 85 function load() { |
| 86 document.addEventListener('keydown', handleKeyDown); | 86 document.addEventListener('keydown', handleKeyDown); |
| 87 $('explanation').textContent = chrome.dialogArguments; | 87 $('explanation').textContent = chrome.getVariableValue('dialogArguments'); |
| 88 $('form').onsubmit = handleSubmit; | 88 $('form').onsubmit = handleSubmit; |
| 89 $('cancel').onclick = cancel; | 89 $('cancel').onclick = cancel; |
| 90 | 90 |
| 91 chrome.send('GetAutofill', ['']); | 91 chrome.send('GetAutofill', ['']); |
| 92 } | 92 } |
| 93 | 93 |
| 94 document.addEventListener('DOMContentLoaded', load); | 94 document.addEventListener('DOMContentLoaded', load); |
| 95 </script> | 95 </script> |
| 96 </head> | 96 </head> |
| 97 <body i18n-values=".style.fontFamily:fontfamily;.style.fontSize:fontsize"> | 97 <body i18n-values=".style.fontFamily:fontfamily;.style.fontSize:fontsize"> |
| (...skipping 17 matching lines...) Expand all Loading... |
| 115 </td> | 115 </td> |
| 116 </tr> | 116 </tr> |
| 117 </table> | 117 </table> |
| 118 <div id="buttons"> | 118 <div id="buttons"> |
| 119 <input id="cancel" type="reset" i18n-values="value:cancel"> | 119 <input id="cancel" type="reset" i18n-values="value:cancel"> |
| 120 <input id="login" type="submit" i18n-values="value:signin"> | 120 <input id="login" type="submit" i18n-values="value:signin"> |
| 121 </div> | 121 </div> |
| 122 </form> | 122 </form> |
| 123 </body> | 123 </body> |
| 124 </html> | 124 </html> |
| OLD | NEW |