@@ -32,31 +32,31 @@ $(document).ready(function() {
3232 // Associate code to repository switch in simple search form.
3333 $ ( '#simplesearch_repository' ) . on ( 'change' , function ( ) {
3434 // Store locale currently selected
35- var current_locale = $ ( '#simplesearch_locale' ) . val ( ) ;
36- var repository_id = this . value ;
35+ var currentLocale = $ ( '#simplesearch_locale' ) . val ( ) ;
36+ var repositoryID = this . value ;
3737
3838 // Empty the select
3939 $ ( '#simplesearch_locale' )
4040 . find ( 'option' )
4141 . remove ( ) ;
4242
4343 // Rebuild options with locales for new repository.
44- $ . each ( supported_locales [ this . value ] , function ( key , locale ) {
44+ $ . each ( supportedLocales [ this . value ] , function ( key , locale ) {
4545 $ ( '#simplesearch_locale' )
4646 . append ( $ ( '<option>' , { value : locale } )
4747 . text ( locale ) ) ;
4848 } ) ;
4949
5050 // Hide elements (e.g. filters in Consistency view) if it's not a desktop repository
51- var desktop_repositories = [ 'central' , 'aurora' , 'beta' , 'release' ] ;
52- if ( desktop_repositories . indexOf ( repository_id ) === - 1 ) {
51+ var desktopRepositories = [ 'central' , 'aurora' , 'beta' , 'release' ] ;
52+ if ( desktopRepositories . indexOf ( repositoryID ) === - 1 ) {
5353 $ ( '.desktop_repo_only' ) . hide ( ) ;
5454 } else {
5555 $ ( '.desktop_repo_only' ) . show ( ) ;
5656 }
5757
5858 // Try to select the same locale previously selected.
59- $ ( '#simplesearch_locale option[value="' + current_locale + '"]' )
59+ $ ( '#simplesearch_locale option[value="' + currentLocale + '"]' )
6060 . prop ( 'selected' , true ) ;
6161 } ) ;
6262
@@ -71,11 +71,10 @@ $(document).ready(function() {
7171
7272var clipboard = new Clipboard ( '.clipboard' ) ;
7373clipboard . on ( 'success' , function ( e ) {
74- e . trigger . setAttribute ( 'data-title' , 'Translation copied!' ) ;
75- e . trigger . setAttribute ( 'class' , 'clipboard tooltip' ) ;
76- setTimeout ( function ( arg1 ) {
77- arg1 . trigger . setAttribute ( 'class' , 'clipboard' )
78- } , 1000 , e ) ;
79- e . clearSelection ( ) ;
80- }
81- ) ;
74+ e . trigger . setAttribute ( 'data-title' , 'Translation copied!' ) ;
75+ e . trigger . setAttribute ( 'class' , 'clipboard tooltip' ) ;
76+ setTimeout ( function ( arg1 ) {
77+ arg1 . trigger . setAttribute ( 'class' , 'clipboard' ) ;
78+ } , 1000 , e ) ;
79+ e . clearSelection ( ) ;
80+ } ) ;
0 commit comments