mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-23 16:51:00 +08:00
fix bug 79056
This commit is contained in:
committed by
Maxim Kadushkin
parent
884de37dc6
commit
80b2ca7ee4
@ -416,7 +416,8 @@ define([], function () { 'use strict';
|
||||
var refType = record.value,
|
||||
typeRec = this.cmbType.getSelectedRecord(),
|
||||
type = (typeRec.type==1 || typeRec.value>4) ? 5 : typeRec.value;
|
||||
var disable = (type==5 && refType!==Asc.c_oAscDocumentRefenceToType.PageNum) || (type<5) && (refType==Asc.c_oAscDocumentRefenceToType.Text || refType==Asc.c_oAscDocumentRefenceToType.AboveBelow);
|
||||
var disable = type === 1 || (type==5 && refType!==Asc.c_oAscDocumentRefenceToType.PageNum) || (type<5) && (refType==Asc.c_oAscDocumentRefenceToType.Text || refType==Asc.c_oAscDocumentRefenceToType.AboveBelow);
|
||||
if (type === 1) this.chBelowAbove.setValue(false);
|
||||
this.chBelowAbove.setDisabled(disable);
|
||||
disable = !(type==0 || type==2) || (refType!==Asc.c_oAscDocumentRefenceToType.ParaNumFullContex);
|
||||
this.chSeparator.setDisabled(disable);
|
||||
|
||||
Reference in New Issue
Block a user