[SSE] Bug 44812

This commit is contained in:
Julia Radzhabova 2020-03-13 16:26:27 +03:00
parent ebbbbdcb7f
commit 13704362ad
4 changed files with 5 additions and 5 deletions

View file

@ -644,7 +644,7 @@ define([
} else { } else {
$(this.el).find('ul').html(_.template([ $(this.el).find('ul').html(_.template([
'<% _.each(items, function(item) { %>', '<% _.each(items, function(item) { %>',
'<li id="<%= item.id %>" data-value="<%= item.value %>"><a tabindex="-1" type="menuitem"><%= scope.getDisplayValue(item) %></a></li>', '<li id="<%= item.id %>" data-value="<%- item.value %>"><a tabindex="-1" type="menuitem"><%= scope.getDisplayValue(item) %></a></li>',
'<% }); %>' '<% }); %>'
].join(''))({ ].join(''))({
items: this.store.toJSON(), items: this.store.toJSON(),

View file

@ -51,8 +51,8 @@ define([
this.active = false; this.active = false;
this.label = 'Tab'; this.label = 'Tab';
this.cls = ''; this.cls = '';
this.template = _.template(['<li class="<% if(active){ %>active selected<% } %> <% if(cls.length){%><%= cls %><%}%>" data-label="<%= label %>">', this.template = _.template(['<li class="<% if(active){ %>active selected<% } %> <% if(cls.length){%><%= cls %><%}%>" data-label="<%- label %>">',
'<a title="<%= label %>"><%- label %></a>', '<a title="<%- label %>"><%- label %></a>',
'</li>'].join('')); '</li>'].join(''));
this.initialize.call(this, opts); this.initialize.call(this, opts);

View file

@ -266,7 +266,7 @@ define([
(new SSE.Views.NameManagerDlg({ (new SSE.Views.NameManagerDlg({
api: this.api, api: this.api,
handler: function(result) { handler: function(result) {
Common.NotificationCenter.trigger('edit:complete', this.editor); Common.NotificationCenter.trigger('edit:complete', me.editor);
}, },
locked: this.namedrange_locked, locked: this.namedrange_locked,
sheets: items, sheets: items,

View file

@ -1042,7 +1042,7 @@ define([
linkstr = props.asc_getHyperlinkUrl() + '<br><b>' + me.textCtrlClick + '</b>'; linkstr = props.asc_getHyperlinkUrl() + '<br><b>' + me.textCtrlClick + '</b>';
} }
} else { } else {
linkstr = props.asc_getTooltip() || (props.asc_getLocation()); linkstr = Common.Utils.String.htmlEncode(props.asc_getTooltip() || (props.asc_getLocation()));
linkstr += '<br><b>' + me.textCtrlClick + '</b>'; linkstr += '<br><b>' + me.textCtrlClick + '</b>';
} }