diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-08-13 14:59:59 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-08-13 14:59:59 +0000 |
commit | 11d4d8177c7bd3e18f04b10f7b25c33409bf5fc9 (patch) | |
tree | 741e24d4f85fdc327c2ff66f9654a57ca08af1bc /public | |
parent | 861ca78179869e13b4b73baa6968127cfd30c401 (diff) | |
download | redmine-11d4d8177c7bd3e18f04b10f7b25c33409bf5fc9.tar.gz redmine-11d4d8177c7bd3e18f04b10f7b25c33409bf5fc9.zip |
Escape filter values using .text instead of .html.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10201 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'public')
-rw-r--r-- | public/javascripts/application.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/public/javascripts/application.js b/public/javascripts/application.js index 5f64c41ba..7346257dc 100644 --- a/public/javascripts/application.js +++ b/public/javascripts/application.js @@ -130,7 +130,7 @@ function buildFilterRow(field, operator, values) { select = tr.find('td.operator select'); for (i=0;i<operators.length;i++){ - var option = $('<option>').val(operators[i]).html(operatorLabels[operators[i]]); + var option = $('<option>').val(operators[i]).text(operatorLabels[operators[i]]); if (operators[i] == operator) {option.attr('selected', true)}; select.append(option); } @@ -151,10 +151,10 @@ function buildFilterRow(field, operator, values) { var filterValue = filterValues[i]; var option = $('<option>'); if ($.isArray(filterValue)) { - option.val(filterValue[1]).html(filterValue[0]); + option.val(filterValue[1]).text(filterValue[0]); if (values.indexOf(filterValue[1]) > -1) {option.attr('selected', true)}; } else { - option.val(filterValue).html(filterValue); + option.val(filterValue).text(filterValue); if (values.indexOf(filterValue) > -1) {option.attr('selected', true)}; } select.append(option); |