[DE][PE] Add langval attribute for tests
This commit is contained in:
parent
4bbe48ce59
commit
9b4f84cf89
|
@ -95,7 +95,7 @@ define([
|
||||||
'<ul class="dropdown-menu <%= menuCls %>" style="<%= menuStyle %>" role="menu">',
|
'<ul class="dropdown-menu <%= menuCls %>" style="<%= menuStyle %>" role="menu">',
|
||||||
'<% _.each(items, function(item) { %>',
|
'<% _.each(items, function(item) { %>',
|
||||||
'<li id="<%= item.id %>" data-value="<%= item.value %>">',
|
'<li id="<%= item.id %>" data-value="<%= item.value %>">',
|
||||||
'<a tabindex="-1" type="menuitem" style="padding-left: 28px !important;">',
|
'<a tabindex="-1" type="menuitem" style="padding-left: 28px !important;" langval="<%= item.value %>">',
|
||||||
'<i class="icon <% if (item.spellcheck) { %> img-toolbarmenu spellcheck-lang <% } %>"></i>',
|
'<i class="icon <% if (item.spellcheck) { %> img-toolbarmenu spellcheck-lang <% } %>"></i>',
|
||||||
'<%= scope.getDisplayValue(item) %>',
|
'<%= scope.getDisplayValue(item) %>',
|
||||||
'</a>',
|
'</a>',
|
||||||
|
|
|
@ -3662,12 +3662,13 @@ define([
|
||||||
_.each(langs, function(lang, index){
|
_.each(langs, function(lang, index){
|
||||||
me.langParaMenu.menu.addItem(new Common.UI.MenuItem({
|
me.langParaMenu.menu.addItem(new Common.UI.MenuItem({
|
||||||
caption : lang.displayValue,
|
caption : lang.displayValue,
|
||||||
|
value : lang.value,
|
||||||
checkable : true,
|
checkable : true,
|
||||||
toggleGroup : 'popupparalang',
|
toggleGroup : 'popupparalang',
|
||||||
langid : lang.code,
|
langid : lang.code,
|
||||||
spellcheck : lang.spellcheck,
|
spellcheck : lang.spellcheck,
|
||||||
template: _.template([
|
template: _.template([
|
||||||
'<a id="<%= id %>" tabindex="-1" type="menuitem" style="padding-left: 28px !important;">',
|
'<a id="<%= id %>" tabindex="-1" type="menuitem" style="padding-left: 28px !important;" langval="<%= options.value %>">',
|
||||||
'<i class="icon <% if (options.spellcheck) { %> img-toolbarmenu spellcheck-lang <% } %>"></i>',
|
'<i class="icon <% if (options.spellcheck) { %> img-toolbarmenu spellcheck-lang <% } %>"></i>',
|
||||||
'<%= caption %>',
|
'<%= caption %>',
|
||||||
'</a>'
|
'</a>'
|
||||||
|
@ -3686,12 +3687,13 @@ define([
|
||||||
|
|
||||||
me.langTableMenu.menu.addItem(new Common.UI.MenuItem({
|
me.langTableMenu.menu.addItem(new Common.UI.MenuItem({
|
||||||
caption : lang.displayValue,
|
caption : lang.displayValue,
|
||||||
|
value : lang.value,
|
||||||
checkable : true,
|
checkable : true,
|
||||||
toggleGroup : 'popuptablelang',
|
toggleGroup : 'popuptablelang',
|
||||||
langid : lang.code,
|
langid : lang.code,
|
||||||
spellcheck : lang.spellcheck,
|
spellcheck : lang.spellcheck,
|
||||||
template: _.template([
|
template: _.template([
|
||||||
'<a id="<%= id %>" tabindex="-1" type="menuitem" style="padding-left: 28px !important;">',
|
'<a id="<%= id %>" tabindex="-1" type="menuitem" style="padding-left: 28px !important;" langval="<%= options.value %>">',
|
||||||
'<i class="icon <% if (options.spellcheck) { %> img-toolbarmenu spellcheck-lang <% } %>"></i>',
|
'<i class="icon <% if (options.spellcheck) { %> img-toolbarmenu spellcheck-lang <% } %>"></i>',
|
||||||
'<%= caption %>',
|
'<%= caption %>',
|
||||||
'</a>'
|
'</a>'
|
||||||
|
|
|
@ -234,7 +234,7 @@ define([
|
||||||
maxHeight: 300,
|
maxHeight: 300,
|
||||||
restoreHeight: 300,
|
restoreHeight: 300,
|
||||||
itemTemplate: _.template([
|
itemTemplate: _.template([
|
||||||
'<a id="<%= id %>" tabindex="-1" type="menuitem" style="padding-left: 28px !important;">',
|
'<a id="<%= id %>" tabindex="-1" type="menuitem" style="padding-left: 28px !important;" langval="<%= options.value.value %>">',
|
||||||
'<i class="icon <% if (options.spellcheck) { %> img-toolbarmenu spellcheck-lang <% } %>"></i>',
|
'<i class="icon <% if (options.spellcheck) { %> img-toolbarmenu spellcheck-lang <% } %>"></i>',
|
||||||
'<%= caption %>',
|
'<%= caption %>',
|
||||||
'</a>'
|
'</a>'
|
||||||
|
|
|
@ -3311,12 +3311,13 @@ define([
|
||||||
_.each(langs, function(lang, index){
|
_.each(langs, function(lang, index){
|
||||||
me.langParaMenu.menu.addItem(new Common.UI.MenuItem({
|
me.langParaMenu.menu.addItem(new Common.UI.MenuItem({
|
||||||
caption : lang.displayValue,
|
caption : lang.displayValue,
|
||||||
|
value : lang.value,
|
||||||
checkable : true,
|
checkable : true,
|
||||||
toggleGroup : 'popupparalang',
|
toggleGroup : 'popupparalang',
|
||||||
langid : lang.code,
|
langid : lang.code,
|
||||||
spellcheck : lang.spellcheck,
|
spellcheck : lang.spellcheck,
|
||||||
template: _.template([
|
template: _.template([
|
||||||
'<a id="<%= id %>" tabindex="-1" type="menuitem" style="padding-left: 28px !important;">',
|
'<a id="<%= id %>" tabindex="-1" type="menuitem" style="padding-left: 28px !important;" langval="<%= options.value %>">',
|
||||||
'<i class="icon <% if (options.spellcheck) { %> img-toolbarmenu spellcheck-lang <% } %>"></i>',
|
'<i class="icon <% if (options.spellcheck) { %> img-toolbarmenu spellcheck-lang <% } %>"></i>',
|
||||||
'<%= caption %>',
|
'<%= caption %>',
|
||||||
'</a>'
|
'</a>'
|
||||||
|
@ -3335,12 +3336,13 @@ define([
|
||||||
|
|
||||||
me.langTableMenu.menu.addItem(new Common.UI.MenuItem({
|
me.langTableMenu.menu.addItem(new Common.UI.MenuItem({
|
||||||
caption : lang.displayValue,
|
caption : lang.displayValue,
|
||||||
|
value : lang.value,
|
||||||
checkable : true,
|
checkable : true,
|
||||||
toggleGroup : 'popuptablelang',
|
toggleGroup : 'popuptablelang',
|
||||||
langid : lang.code,
|
langid : lang.code,
|
||||||
spellcheck : lang.spellcheck,
|
spellcheck : lang.spellcheck,
|
||||||
template: _.template([
|
template: _.template([
|
||||||
'<a id="<%= id %>" tabindex="-1" type="menuitem" style="padding-left: 28px !important;">',
|
'<a id="<%= id %>" tabindex="-1" type="menuitem" style="padding-left: 28px !important;" langval="<%= options.value %>">',
|
||||||
'<i class="icon <% if (options.spellcheck) { %> img-toolbarmenu spellcheck-lang <% } %>"></i>',
|
'<i class="icon <% if (options.spellcheck) { %> img-toolbarmenu spellcheck-lang <% } %>"></i>',
|
||||||
'<%= caption %>',
|
'<%= caption %>',
|
||||||
'</a>'
|
'</a>'
|
||||||
|
|
|
@ -268,7 +268,7 @@ define([
|
||||||
maxHeight: 300,
|
maxHeight: 300,
|
||||||
restoreHeight: 300,
|
restoreHeight: 300,
|
||||||
itemTemplate: _.template([
|
itemTemplate: _.template([
|
||||||
'<a id="<%= id %>" tabindex="-1" type="menuitem" style="padding-left: 28px !important;">',
|
'<a id="<%= id %>" tabindex="-1" type="menuitem" style="padding-left: 28px !important;" langval="<%= options.value.value %>">',
|
||||||
'<i class="icon <% if (options.spellcheck) { %> img-toolbarmenu spellcheck-lang <% } %>"></i>',
|
'<i class="icon <% if (options.spellcheck) { %> img-toolbarmenu spellcheck-lang <% } %>"></i>',
|
||||||
'<%= caption %>',
|
'<%= caption %>',
|
||||||
'</a>'
|
'</a>'
|
||||||
|
|
Loading…
Reference in a new issue