Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(279)

Side by Side Diff: chrome/browser/resources/chromeos/login/screen_locally_managed_user_creation.js

Issue 17494004: Update Managed user strings for ChromeOS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 /** 5 /**
6 * @fileoverview Locally managed user creation flow screen. 6 * @fileoverview Locally managed user creation flow screen.
7 */ 7 */
8 8
9 login.createScreen('LocallyManagedUserCreationScreen', 9 login.createScreen('LocallyManagedUserCreationScreen',
10 'managed-user-creation', function() { 10 'managed-user-creation', function() {
(...skipping 780 matching lines...) Expand 10 before | Expand all | Expand 10 after
791 return; 791 return;
792 } 792 }
793 chrome.send('abortLocalManagedUserCreation'); 793 chrome.send('abortLocalManagedUserCreation');
794 }, 794 },
795 795
796 updateText_: function() { 796 updateText_: function() {
797 var managerId = this.context_.managerId; 797 var managerId = this.context_.managerId;
798 this.updateElementText_('created-1-text-1', 798 this.updateElementText_('created-1-text-1',
799 'createManagedUserCreated1Text1', 799 'createManagedUserCreated1Text1',
800 this.context_.managedName); 800 this.context_.managedName);
801 this.updateElementText_('created-1-text-2',
802 'createManagedUserCreated1Text2',
803 loadTimeData.getString('managementURL'), this.context_.managedName);
801 this.updateElementText_('created-1-text-3', 804 this.updateElementText_('created-1-text-3',
802 'createManagedUserCreated1Text3', 805 'createManagedUserCreated1Text3',
803 managerId); 806 managerId);
804 this.updateElementText_('created-3-text-2', 807 this.updateElementText_('created-3-text-2',
805 'createManagedUserCreated3Text2', 808 'createManagedUserCreated3Text2',
806 loadTimeData.getStringF('managementURL'), 809 loadTimeData.getString('managementURL'),
807 managerId); 810 managerId);
808 this.updateElementText_('created-3-text-3', 811 this.updateElementText_('created-3-text-3',
809 'createManagedUserCreated3Text3', 812 'createManagedUserCreated3Text3',
810 managerId); 813 managerId);
811 this.updateElementText_('name-explanation', 814 this.updateElementText_('name-explanation',
812 'createManagedUserNameExplanation', 815 'createManagedUserNameExplanation',
813 managerId); 816 managerId);
814 }, 817 },
815 818
816 updateElementText_: function(localId, templateName, value) { 819 updateElementText_: function(localId, templateName) {
820 var args = Array.prototype.slice.call(arguments);
821 args.shift();
817 this.getScreenElement(localId).innerHTML = 822 this.getScreenElement(localId).innerHTML =
818 loadTimeData.getStringF(templateName, value); 823 loadTimeData.getStringF.apply(loadTimeData, args);
819 }, 824 },
820 825
821 showIntroPage: function() { 826 showIntroPage: function() {
822 $('managed-user-creation-password').value = ''; 827 $('managed-user-creation-password').value = '';
823 $('managed-user-creation-password-confirm').value = ''; 828 $('managed-user-creation-password-confirm').value = '';
824 $('managed-user-creation-name').value = ''; 829 $('managed-user-creation-name').value = '';
825 830
826 this.lastVerifiedName_ = null; 831 this.lastVerifiedName_ = null;
827 this.lastIncorrectUserName_ = null; 832 this.lastIncorrectUserName_ = null;
828 this.passwordErrorVisible = false; 833 this.passwordErrorVisible = false;
(...skipping 23 matching lines...) Expand all
852 this.setVisiblePage_('error'); 857 this.setVisiblePage_('error');
853 }, 858 },
854 859
855 showManagerPasswordError: function() { 860 showManagerPasswordError: function() {
856 this.disabled = false; 861 this.disabled = false;
857 this.showSelectedManagerPasswordError_(); 862 this.showSelectedManagerPasswordError_();
858 } 863 }
859 }; 864 };
860 }); 865 });
861 866
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698