This commit is contained in:
Alexey Golubev 2019-07-09 19:18:09 +03:00
commit 55253c4d75
4 changed files with 14 additions and 14 deletions

View file

@ -101,7 +101,7 @@
mode : urlParams["mode"] || 'edit',
lang : urlParams["lang"] || 'en',
user: {
id: urlParams["userid"] || 'uid-901', name: urlParams["username"] || 'Chuk.Gek'
id: urlParams["userid"] || urlParams["username"] || 'uid-901', name: urlParams["username"] || 'Chuk.Gek'
}
};
}

View file

@ -304,7 +304,7 @@ define([
} else if (index === 0) {
menuRoot.prepend(item.render().el);
} else {
$('li:nth-child(' + (index+1) + ')', menuRoot).before(item.render().el);
menuRoot.children('li:nth-child(' + (index+1) + ')').before(item.render().el);
}
item.on('click', _.bind(me.onItemClick, me));

View file

@ -815,19 +815,19 @@ define([
if (arr.length > 0) {
if (isParagraph) {
_.each(arr, function(variant){
me.textMenu.insertItem(0, variant);
_.each(arr, function(variant, index){
me.textMenu.insertItem(index, variant);
})
} else {
_.each(arr, function(variant){
me.menuSpellCheckTable.menu.insertItem(0, variant);
_.each(arr, function(variant, index){
me.menuSpellCheckTable.menu.insertItem(index, variant);
})
}
}
if (arrMore.length > 0) {
_.each(arrMore, function(variant){
moreMenu.menu.insertItem(0, variant);
_.each(arrMore, function(variant, index){
moreMenu.menu.addItem(variant);
});
}

View file

@ -766,19 +766,19 @@ define([
if (arr.length > 0) {
if (isParagraph) {
_.each(arr, function(variant){
me.textMenu.insertItem(0, variant);
_.each(arr, function(variant, index){
me.textMenu.insertItem(index, variant);
})
} else {
_.each(arr, function(variant){
me.menuSpellCheckTable.menu.insertItem(0, variant);
_.each(arr, function(variant, index){
me.menuSpellCheckTable.menu.insertItem(index, variant);
})
}
}
if (arrMore.length > 0) {
_.each(arrMore, function(variant){
moreMenu.menu.insertItem(0, variant);
_.each(arrMore, function(variant, index){
moreMenu.menu.addItem(variant);
});
}