snackbar translation for acp

v1.18.x
psychobunny 10 years ago
parent 643abb6926
commit 80b13c94c8

@ -105,15 +105,17 @@
} }
function launchSnackbar(params) { function launchSnackbar(params) {
var bar = $.snackbar({ translator.translate("<strong>" + params.title + "</strong>" + params.message, function(html) {
content: "<strong>" + params.title + "</strong>" + params.message, var bar = $.snackbar({
timeout: 3000, content: html,
htmlAllowed: true timeout: 3000,
}); htmlAllowed: true
});
if (params.clickfn) { if (params.clickfn) {
bar.on('click', params.clickfn); bar.on('click', params.clickfn);
} }
});
} }
function configureSlidemenu() { function configureSlidemenu() {

Loading…
Cancel
Save