1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2024-12-02 14:24:10 +01:00

Fix encoding in 3rdparty lib

This commit is contained in:
Lukas Reschke 2015-02-06 15:01:42 +01:00
parent a8482c24cd
commit 94dfff4eb5
2 changed files with 6 additions and 5 deletions

View File

@ -1089,7 +1089,7 @@ OC.Contacts = OC.Contacts || {};
this.$fullelem.find('.groupscontainer').show(); this.$fullelem.find('.groupscontainer').show();
//this.$groupSelect.find('option').remove(); //this.$groupSelect.find('option').remove();
$.each(availableGroups, function(idx, group) { $.each(availableGroups, function(idx, group) {
var $option = $('<option value="' + group.id + '">' + group.name + '</option>'); var $option = $('<option value="' + group.id + '">' + escapeHTML(group.name) + '</option>');
if(self.inGroup(group.name)) { if(self.inGroup(group.name)) {
$option.attr('selected', 'selected'); $option.attr('selected', 'selected');
} }
@ -1575,7 +1575,7 @@ OC.Contacts = OC.Contacts || {};
var input = $editor.find('input').first(); var input = $editor.find('input').first();
var params = self.parametersFor(input, true); var params = self.parametersFor(input, true);
$(this).find('.meta').html(params.TYPE.join('/')); $(this).find('.meta').html(params.TYPE.join('/'));
$(this).find('.adr').html(self.valueFor($editor.find('input').first()).clean('').join(', ')); $(this).find('.adr').text(self.valueFor($editor.find('input').first()).clean('').join(', '));
$(this).next('.listactions').css('display', 'inline-block'); $(this).next('.listactions').css('display', 'inline-block');
$('body').unbind('click', bodyListener); $('body').unbind('click', bodyListener);
}); });

View File

@ -158,11 +158,11 @@ $.widget("ech.multiselect", {
labelClasses.push( 'ui-state-active' ); labelClasses.push( 'ui-state-active' );
} }
html += '<li class="' + liClasses + '">'; html += '<li class="' + escapeHTML(liClasses) + '">';
// create the label // create the label
html += '<label for="' + inputID + '" title="' + description + '" class="' + labelClasses.join(' ') + '">'; html += '<label for="' + escapeHTML(inputID) + '" title="' + escapeHTML(description) + '" class="' + escapeHTML(labelClasses.join(' ')) + '">';
html += '<input id="' + inputID + '" name="multiselect_' + id + '" type="' + (o.multiple ? "checkbox" : "radio") + '" value="' + value + '" title="' + title + '"'; html += '<input id="' + escapeHTML(inputID) + '" name="multiselect_' + escapeHTML(id) + '" type="' + (o.multiple ? "checkbox" : "radio") + '" value="' + escapeHTML(value) + '" title="' + escapeHTML(title) + '"';
// pre-selected? // pre-selected?
if( isSelected ){ if( isSelected ){
@ -703,3 +703,4 @@ $.widget("ech.multiselect", {
}); });
})(jQuery); })(jQuery);