From 988b46d30ce21e57de51418f7520e1a5f7b0d685 Mon Sep 17 00:00:00 2001
From: farggus <61951994+farggus@users.noreply.github.com>
Date: Sun, 29 Mar 2020 20:48:43 +0300
Subject: [PATCH] Update user.js for translate adaptation
- Add i18n for alert
---
airtime_mvc/public/js/airtime/user/user.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/airtime_mvc/public/js/airtime/user/user.js b/airtime_mvc/public/js/airtime/user/user.js
index 7a7480062..fbaee2d17 100644
--- a/airtime_mvc/public/js/airtime/user/user.js
+++ b/airtime_mvc/public/js/airtime/user/user.js
@@ -60,7 +60,7 @@ function rowCallback( nRow, aData, iDisplayIndex ){
if( aData['delete'] != "self"){
$('td:eq(4)', nRow).append( '').children('span').click(function(e){e.stopPropagation(); removeUserCallback(aData['id'], nRow)});
}else{
- $('td:eq(4)', nRow).empty().append( '').children('span').click(function(e){e.stopPropagation(); alert("Can't delete yourself!")});
+ $('td:eq(4)', nRow).empty().append( '').children('span').click(function(e){e.stopPropagation(); alert($.i18n._("Can't delete yourself!"))});
}
if ( aData['type'] == "A" )