diff options
author | Go MAEDA <maeda@farend.jp> | 2020-01-14 14:38:48 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2020-01-14 14:38:48 +0000 |
commit | 6611f5bf5dd78d5c7ba9b11eafc498049e05fa52 (patch) | |
tree | 499425f933124e0342055ecd70d01343959313bf /public | |
parent | 7f60d56201e479be4f1235e873e1119e493679ad (diff) | |
download | redmine-6611f5bf5dd78d5c7ba9b11eafc498049e05fa52.tar.gz redmine-6611f5bf5dd78d5c7ba9b11eafc498049e05fa52.zip |
Make languages in Highlighted code button in toolbar customizable (#32528).
Patch by Mizuki ISHIKAWA.
git-svn-id: http://svn.redmine.org/redmine/trunk@19429 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'public')
-rw-r--r-- | public/javascripts/jstoolbar/jstoolbar.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/public/javascripts/jstoolbar/jstoolbar.js b/public/javascripts/jstoolbar/jstoolbar.js index dccff9952..4f5ab7306 100644 --- a/public/javascripts/jstoolbar/jstoolbar.js +++ b/public/javascripts/jstoolbar/jstoolbar.js @@ -453,7 +453,7 @@ jsToolBar.prototype.resizeDragStop = function(event) { /* Code highlighting menu */ jsToolBar.prototype.precodeMenu = function(fn){ - var hlLanguages = ["c", "cpp", "csharp", "css", "diff", "go", "groovy", "html", "java", "javascript", "objc", "perl", "php", "python", "r", "ruby", "sass", "scala", "shell", "sql", "swift", "xml", "yaml"]; + 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(){ |