* [bug #56994, done, 0.5h] fix js error on redirect from api-index to doc-productSpace.
This commit is contained in:
@@ -218,7 +218,7 @@ function handleClickSpaceMenu(event, value)
|
||||
|
||||
function getSpaceMenuText(text, state)
|
||||
{
|
||||
const spaceID = getDocApp().spaceID;
|
||||
const spaceID = this.spaceID;
|
||||
if(spaceID === 'nolink') return text;
|
||||
const libTypeList = getDocAppLang('libTypeList');
|
||||
return `${libTypeList[spaceID.split('.')[0]]} / ${text}`;
|
||||
@@ -231,7 +231,7 @@ function getSpaceMenuOptions(spaceType, spaceID)
|
||||
popWidth : 350,
|
||||
onClickItem : handleClickSpaceMenu,
|
||||
defaultValue: spaceID === 'nolink' ? `lib.${libID}`: spaceID,
|
||||
display : getSpaceMenuText
|
||||
display : getSpaceMenuText.bind(this)
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user