From 80b13c94c8d784d594747150aab2a7f318ee017e Mon Sep 17 00:00:00 2001 From: psychobunny Date: Thu, 27 Aug 2015 17:54:36 -0400 Subject: [PATCH] snackbar translation for acp --- public/src/admin/admin.js | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/public/src/admin/admin.js b/public/src/admin/admin.js index 91771a13b2..a1ac7376f3 100644 --- a/public/src/admin/admin.js +++ b/public/src/admin/admin.js @@ -105,15 +105,17 @@ } function launchSnackbar(params) { - var bar = $.snackbar({ - content: "" + params.title + "" + params.message, - timeout: 3000, - htmlAllowed: true - }); + translator.translate("" + params.title + "" + params.message, function(html) { + var bar = $.snackbar({ + content: html, + timeout: 3000, + htmlAllowed: true + }); - if (params.clickfn) { - bar.on('click', params.clickfn); - } + if (params.clickfn) { + bar.on('click', params.clickfn); + } + }); } function configureSlidemenu() {