[DE] Refactoring

This commit is contained in:
Julia Radzhabova 2020-09-24 12:47:58 +03:00
parent 39b45d0c6f
commit f0e84b5005

View file

@ -249,7 +249,7 @@ define([
this.api.asc_AddCrossRefToNote(record.get('para'), reftype, link, below);
break;
case 5: // caption
if (reftype==Asc.c_oAscDocumentRefenceToType.OnlyCaptionText && record.get('para').asc_canAddRefToCaptionText()===false) {
if (reftype==Asc.c_oAscDocumentRefenceToType.OnlyCaptionText && record.get('para').asc_canAddRefToCaptionText(record.get('value'))===false) {
Common.UI.warning({
msg : this.textEmpty
});