| OLD | NEW | 
|    1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |    1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 
|    2 // Use of this source code is governed by a BSD-style license that can be |    2 // Use of this source code is governed by a BSD-style license that can be | 
|    3 // found in the LICENSE file. |    3 // found in the LICENSE file. | 
|    4  |    4  | 
|    5 cr.define('options', function() { |    5 cr.define('options', function() { | 
|    6   const OptionsPage = options.OptionsPage; |    6   const OptionsPage = options.OptionsPage; | 
|    7   const ArrayDataModel = cr.ui.ArrayDataModel; |    7   const ArrayDataModel = cr.ui.ArrayDataModel; | 
|    8  |    8  | 
|    9   // The GUID of the loaded address. |    9   // The GUID of the loaded address. | 
|   10   var guid; |   10   var guid; | 
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  232         name: '' |  232         name: '' | 
|  233       }; |  233       }; | 
|  234       var defaultCountry = { |  234       var defaultCountry = { | 
|  235         countryCode: defaultCountryCode, |  235         countryCode: defaultCountryCode, | 
|  236         name: countryData[defaultCountryCode]['name'] |  236         name: countryData[defaultCountryCode]['name'] | 
|  237       }; |  237       }; | 
|  238       var separator = { |  238       var separator = { | 
|  239         countryCode: '', |  239         countryCode: '', | 
|  240         name: '---', |  240         name: '---', | 
|  241         disabled: true |  241         disabled: true | 
|  242       } |  242       }; | 
|  243       countries.unshift(emptyCountry, defaultCountry, separator); |  243       countries.unshift(emptyCountry, defaultCountry, separator); | 
|  244  |  244  | 
|  245       // Add the countries to the country <select> list. |  245       // Add the countries to the country <select> list. | 
|  246       var countryList = $('country'); |  246       var countryList = $('country'); | 
|  247       for (var i = 0; i < countries.length; i++) { |  247       for (var i = 0; i < countries.length; i++) { | 
|  248         var country = new Option(countries[i].name, countries[i].countryCode); |  248         var country = new Option(countries[i].name, countries[i].countryCode); | 
|  249         country.disabled = countries[i].disabled; |  249         country.disabled = countries[i].disabled; | 
|  250         countryList.appendChild(country) |  250         countryList.appendChild(country); | 
|  251       } |  251       } | 
|  252     }, |  252     }, | 
|  253  |  253  | 
|  254     /** |  254     /** | 
|  255      * Clears the value of each input field. |  255      * Clears the value of each input field. | 
|  256      * @private |  256      * @private | 
|  257      */ |  257      */ | 
|  258     clearInputFields_: function() { |  258     clearInputFields_: function() { | 
|  259       this.setNameList_([]); |  259       this.setNameList_([]); | 
|  260       $('company-name').value = ''; |  260       $('company-name').value = ''; | 
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  316   AutofillEditAddressOverlay.setValidatedPhoneNumbers = function(numbers) { |  316   AutofillEditAddressOverlay.setValidatedPhoneNumbers = function(numbers) { | 
|  317     AutofillEditAddressOverlay.getInstance().setMultiValueList_('phone-list', |  317     AutofillEditAddressOverlay.getInstance().setMultiValueList_('phone-list', | 
|  318                                                                 numbers); |  318                                                                 numbers); | 
|  319   }; |  319   }; | 
|  320  |  320  | 
|  321   // Export |  321   // Export | 
|  322   return { |  322   return { | 
|  323     AutofillEditAddressOverlay: AutofillEditAddressOverlay |  323     AutofillEditAddressOverlay: AutofillEditAddressOverlay | 
|  324   }; |  324   }; | 
|  325 }); |  325 }); | 
| OLD | NEW |