OLD | NEW |
1 <html i18n-values="dir:textdirection;"> | 1 <html i18n-values="dir:textdirection;"> |
2 <head> | 2 <head> |
3 <title></title> | 3 <title></title> |
4 <style type="text/css"> | 4 <style type="text/css"> |
5 body { | 5 body { |
6 line-height: 1.33em; | 6 line-height: 1.33em; |
7 background: #FFFFFF; | 7 background: #FFFFFF; |
8 font-size: 11pt; | 8 font-size: 11pt; |
9 } | 9 } |
10 html[os='mac'] body { | 10 html[os='mac'] body { |
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
417 function onRadioChange() { | 417 function onRadioChange() { |
418 switchToMode(getRadioCheckedValue()); | 418 switchToMode(getRadioCheckedValue()); |
419 } | 419 } |
420 | 420 |
421 function checkPassphraseMatch() { | 421 function checkPassphraseMatch() { |
422 var emptyError = document.getElementById("emptyerror"); | 422 var emptyError = document.getElementById("emptyerror"); |
423 var mismatchError = document.getElementById("mismatcherror"); | 423 var mismatchError = document.getElementById("mismatcherror"); |
424 emptyError.style.display = "none"; | 424 emptyError.style.display = "none"; |
425 mismatchError.style.display = "none"; | 425 mismatchError.style.display = "none"; |
426 | 426 |
427 if (getRadioCheckedValue() != "explicit") { | 427 var f = document.getElementById("chooseDataTypesForm"); |
| 428 if (getRadioCheckedValue() != "explicit" || f.option[0].disabled) { |
428 return true; | 429 return true; |
429 } | 430 } |
430 var f = document.getElementById("chooseDataTypesForm"); | |
431 if (f.passphrase.value.length == 0) { | 431 if (f.passphrase.value.length == 0) { |
432 emptyError.style.display = "block"; | 432 emptyError.style.display = "block"; |
433 return false; | 433 return false; |
434 } | 434 } |
435 if (f.confirmpassphrase.value != f.passphrase.value) { | 435 if (f.confirmpassphrase.value != f.passphrase.value) { |
436 mismatchError.style.display = "block"; | 436 mismatchError.style.display = "block"; |
437 return false; | 437 return false; |
438 } | 438 } |
439 return true; | 439 return true; |
440 } | 440 } |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
603 </div> | 603 </div> |
604 | 604 |
605 <div class="sync-footer"> | 605 <div class="sync-footer"> |
606 <input id="okButton" type="submit" i18n-values="value:ok" /> | 606 <input id="okButton" type="submit" i18n-values="value:ok" /> |
607 <input id="cancelButton" type="button" i18n-values="value:cancel" | 607 <input id="cancelButton" type="button" i18n-values="value:cancel" |
608 onclick='chrome.send("DialogClose", [""])' /> | 608 onclick='chrome.send("DialogClose", [""])' /> |
609 </div> | 609 </div> |
610 </form> | 610 </form> |
611 </body> | 611 </body> |
612 </html> | 612 </html> |
OLD | NEW |