js/actiontable: Fix the wrong parentheses encoding in multiselect

fixes #9347
This commit is contained in:
Alexander Fuhr 2015-08-04 16:45:22 +02:00
parent ebd103f7ee
commit 3d846ea270
1 changed files with 2 additions and 1 deletions

View File

@ -239,13 +239,14 @@
var self = this;
var selections = this.selections();
var queries = [];
var utils = this.icinga.utils;
if (selections.length === 1) {
return $(selections[0]).attr('href');
} else if (selections.length > 1 && self.hasMultiselection()) {
selections.each(function (i, el) {
var parts = [];
$.each(self.getRowData($(el)), function(key, value) {
parts.push(encodeURIComponent(key) + '=' + encodeURIComponent(value));
parts.push(utils.fixedEncodeURIComponent(key) + '=' + utils.fixedEncodeURIComponent(value));
});
queries.push('(' + parts.join('&') + ')');
});