From 06efda3703254f9c01940d9618389772fe4e3544 Mon Sep 17 00:00:00 2001 From: Dustin Falgout Date: Mon, 17 Apr 2017 17:51:36 -0500 Subject: [PATCH] Fix bug in system action confirmation modal where translated strings were not shown. --- themes/default/js/greeter.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/themes/default/js/greeter.js b/themes/default/js/greeter.js index ca6150f..767adac 100644 --- a/themes/default/js/greeter.js +++ b/themes/default/js/greeter.js @@ -532,7 +532,7 @@ class Theme { .appendTo( this.$actions_container ) .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(); $( '.modal' ).modal( { show: false } ); @@ -771,8 +771,8 @@ class Theme { } - system_action_handler() { - let action = $( this ).attr( 'id' ), + system_action_handler( event ) { + let action = $( event.target ).attr( 'id' ), $modal = $( '.modal' ); $modal