590 selectButtonMinor: 'toolbar.js', |
590 selectButtonMinor: 'toolbar.js', |
591 unselectAllButtonsMajor: 'toolbar.js', |
591 unselectAllButtonsMajor: 'toolbar.js', |
592 unselectAllButtonsMinor: 'toolbar.js', |
592 unselectAllButtonsMinor: 'toolbar.js', |
593 darken: 'fadefilter.js', |
593 darken: 'fadefilter.js', |
594 enlighten: 'fadefilter.js', |
594 enlighten: 'fadefilter.js', |
595 autofill_onload: 'autofill.js', |
|
596 password_score: 'pwstrength.js', |
595 password_score: 'pwstrength.js', |
597 password_score_field: 'pwstrength.js', |
596 password_score_field: 'pwstrength.js', |
598 ajaxEditTheme: 'theme-manager.js', |
597 ajaxEditTheme: 'theme-manager.js', |
599 ajaxToggleSystemThemes: 'theme-manager.js', |
598 ajaxToggleSystemThemes: 'theme-manager.js', |
600 ajaxInstallTheme: 'theme-manager.js', |
599 ajaxInstallTheme: 'theme-manager.js', |
601 ajaxInitRankEdit: 'rank-manager.js', |
600 ajaxInitRankEdit: 'rank-manager.js', |
602 ajaxInitRankCreate: 'rank-manager.js', |
601 ajaxInitRankCreate: 'rank-manager.js', |
603 autofill_init_element: 'autofill.js', |
602 autofill_init_element: 'autofill.js', |
604 autofill_onload: 'autofill.js', |
603 autofill_init: 'autofill.js', |
605 paginator_goto: 'paginate.js' |
604 paginator_goto: 'paginate.js' |
606 }; |
605 }; |
607 |
606 |
608 function AutofillUsername(el, p) |
607 function AutofillUsername(el, p) |
609 { |
608 { |
625 |
624 |
626 for ( var i in placeholder_list ) |
625 for ( var i in placeholder_list ) |
627 { |
626 { |
628 var file = placeholder_list[i]; |
627 var file = placeholder_list[i]; |
629 placeholder_instances[i] = new Placeholder(i, file); |
628 placeholder_instances[i] = new Placeholder(i, file); |
630 window[i] = placeholder_instances[i].go; |
629 window[i] = window[i] || placeholder_instances[i].go; |
631 } |
630 } |
632 |
631 |
633 $lang = { |
632 $lang = window.$lang || { |
634 get: function(a, b) |
633 get: function(a, b) |
635 { |
634 { |
636 load_component('l10n'); |
635 load_component('l10n'); |
637 return $lang.get(a, b); |
636 return $lang.get(a, b); |
638 } |
637 }, |
|
638 placeholder: true |
639 } |
639 } |
640 |
640 |
641 //*/ |
641 //*/ |