mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: allow translation keys in label attributes
This commit is contained in:
2
public/vendor/bootbox/wrapper.js
vendored
2
public/vendor/bootbox/wrapper.js
vendored
@@ -23,7 +23,7 @@ require(['translator', 'bootbox'], function (shim, bootbox) {
|
|||||||
|
|
||||||
var translator = shim.Translator.create();
|
var translator = shim.Translator.create();
|
||||||
var dialog = bootbox.dialog;
|
var dialog = bootbox.dialog;
|
||||||
var attrsToTranslate = ['placeholder', 'title', 'value'];
|
var attrsToTranslate = ['placeholder', 'title', 'value', 'label'];
|
||||||
bootbox.dialog = function (options) {
|
bootbox.dialog = function (options) {
|
||||||
var show = options.show !== false;
|
var show = options.show !== false;
|
||||||
options.show = false;
|
options.show = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user