diff --git a/apps/presentationeditor/mobile/src/controller/edit/EditLink.jsx b/apps/presentationeditor/mobile/src/controller/edit/EditLink.jsx
index 6139aca40..756545b16 100644
--- a/apps/presentationeditor/mobile/src/controller/edit/EditLink.jsx
+++ b/apps/presentationeditor/mobile/src/controller/edit/EditLink.jsx
@@ -67,7 +67,7 @@ class EditLinkController extends Component {
let mask = "ppaction://hlinksldjumpslide",
indSlide = url.indexOf(mask);
if (0 == indSlide) {
- slideNum = parseInt(url.substring(mask.length));
+ this.slideNum = parseInt(url.substring(mask.length));
if (slideNum < 0) this.slideNum = 0;
if (slideNum >= slidesCount) this.slideNum = slidesCount - 1;
} else this.slideNum = 0;
@@ -121,7 +121,7 @@ class EditLinkController extends Component {
break;
case 1:
url = url + "showjump?jump=previousslide";
- slidetip = _t.textPrevSlide;
+ slidetip = _t.textPreviousSlide;
break;
case 2:
url = url + "showjump?jump=firstslide";
@@ -137,12 +137,12 @@ class EditLinkController extends Component {
break;
}
props.put_Value(url);
- props.put_ToolTip(!tip ? slidetip : tip);
+ props.put_ToolTip(tip === '' ? slidetip : tip);
def_display = slidetip;
}
if (!linkInfo.displayDisabled) {
- props.put_Text(!display ? def_display : display);
+ props.put_Text(display === '' ? def_display : display);
} else
props.put_Text(null);
diff --git a/apps/presentationeditor/mobile/src/view/edit/EditLink.jsx b/apps/presentationeditor/mobile/src/view/edit/EditLink.jsx
index e7e0b80e9..b6d154e97 100644
--- a/apps/presentationeditor/mobile/src/view/edit/EditLink.jsx
+++ b/apps/presentationeditor/mobile/src/view/edit/EditLink.jsx
@@ -13,8 +13,8 @@ const PageTypeLink = props => {
- {setTypeLink(1); props.changeType(1); props.initLink();}}>
- {setTypeLink(0); props.changeType(0); props.initLink();}}>
+ {setTypeLink(1); props.changeType(1);}}>
+ {setTypeLink(0); props.changeType(0);}}>
)
@@ -32,7 +32,7 @@ const PageLinkTo = props => {
props.changeTo(type);
};
- const [stateNumberTo, setNumberTo] = useState(0);
+ const [stateNumberTo, setNumberTo] = useState(props.numberTo);
const changeNumber = (curNumber, isDecrement) => {
setTypeTo(4);
@@ -139,6 +139,7 @@ const PageLink = props => {