v5.3.3
This commit is contained in:
commit
3704114540
|
@ -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'
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
@ -324,7 +324,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));
|
||||
|
|
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue