Browse Source

Fix bug in system action confirmation modal where translated strings were not shown.

sisyphus
Dustin Falgout 8 years ago
parent
commit
06efda3703
No known key found for this signature in database
GPG Key ID: AEA529BF122902E5
  1. 6
      themes/default/js/greeter.js

6
themes/default/js/greeter.js vendored

@ -532,7 +532,7 @@ class Theme {
.appendTo( this.$actions_container ) .appendTo( this.$actions_container )
.on( 'click', event => this.system_action_handler(event) ); .on( 'click', event => this.system_action_handler(event) );
} // END for (let [action, icon] of actions) } // END for (let action of actions)
$( '[data-toggle=tooltip]' ).tooltip(); $( '[data-toggle=tooltip]' ).tooltip();
$( '.modal' ).modal( { show: false } ); $( '.modal' ).modal( { show: false } );
@ -771,8 +771,8 @@ class Theme {
} }
system_action_handler() { system_action_handler( event ) {
let action = $( this ).attr( 'id' ), let action = $( event.target ).attr( 'id' ),
$modal = $( '.modal' ); $modal = $( '.modal' );
$modal $modal

Loading…
Cancel
Save