[DE] List content controls: show empty element

This commit is contained in:
Julia Radzhabova 2019-12-12 10:22:20 +03:00
parent 45304408a7
commit 95acc7ce77
2 changed files with 10 additions and 2 deletions

View file

@ -4061,7 +4061,7 @@ define([
});
menu.on('item:click', function(menu, item) {
setTimeout(function(){
me.api.asc_SelectContentControlListItem(item.value, me._listObj.get_InternalId());
(item.value!==-1) && me.api.asc_SelectContentControlListItem(item.value, me._listObj.get_InternalId());
}, 1);
});
@ -4087,6 +4087,12 @@ define([
value : specProps.get_ItemValue(i)
}));
}
if (count<1) {
menu.addItem(new Common.UI.MenuItem({
caption : this.txtEmpty,
value : -1
}));
}
}
menuContainer.css({left: x, top : y});
@ -4339,7 +4345,8 @@ define([
txtPrintSelection: 'Print Selection',
textCells: 'Cells',
textSeveral: 'Several Rows/Columns',
txtInsertCaption: 'Insert Caption'
txtInsertCaption: 'Insert Caption',
txtEmpty: '(Empty)'
}, DE.Views.DocumentHolder || {}));
});

View file

@ -1377,6 +1377,7 @@
"DE.Views.DocumentHolder.txtUngroup": "Ungroup",
"DE.Views.DocumentHolder.updateStyleText": "Update %1 style",
"DE.Views.DocumentHolder.vertAlignText": "Vertical Alignment",
"DE.Views.DocumentHolder.txtEmpty": "(Empty)",
"DE.Views.DropcapSettingsAdvanced.strBorders": "Borders & Fill",
"DE.Views.DropcapSettingsAdvanced.strDropcap": "Drop Cap",
"DE.Views.DropcapSettingsAdvanced.strMargins": "Margins",