summaryrefslogtreecommitdiffstats
path: root/public/javascripts/jstoolbar
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2020-05-18 13:50:31 +0000
committerGo MAEDA <maeda@farend.jp>2020-05-18 13:50:31 +0000
commit006c5dfce874a623c1132af5052281667cd2e73b (patch)
tree94f192b185b740f977dd060c8c6faa3130c85b27 /public/javascripts/jstoolbar
parent0b24a0bf9f3adf36772462a733bdd8aea9a5d6ce (diff)
downloadredmine-006c5dfce874a623c1132af5052281667cd2e73b.tar.gz
redmine-006c5dfce874a623c1132af5052281667cd2e73b.zip
Update jQuery UI to 1.12.1 (#31887).
Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@19783 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'public/javascripts/jstoolbar')
-rw-r--r--public/javascripts/jstoolbar/jstoolbar.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/public/javascripts/jstoolbar/jstoolbar.js b/public/javascripts/jstoolbar/jstoolbar.js
index 064dfec1f..0a2d454e8 100644
--- a/public/javascripts/jstoolbar/jstoolbar.js
+++ b/public/javascripts/jstoolbar/jstoolbar.js
@@ -456,7 +456,8 @@ jsToolBar.prototype.precodeMenu = function(fn){
var hlLanguages = window.userHlLanguages;
var menu = $("<ul style='position:absolute;'></ul>");
for (var i = 0; i < hlLanguages.length; i++) {
- $("<li></li>").text(hlLanguages[i]).appendTo(menu).mousedown(function(){
+ var langItem = $('<div></div>').text(hlLanguages[i]);
+ $("<li></li>").html(langItem).appendTo(menu).mousedown(function(){
fn($(this).text());
});
}