[PE mobile] Fixed Link Settings
This commit is contained in:
parent
0a36021498
commit
c2ba15338c
|
@ -67,7 +67,7 @@ class EditLinkController extends Component {
|
||||||
let mask = "ppaction://hlinksldjumpslide",
|
let mask = "ppaction://hlinksldjumpslide",
|
||||||
indSlide = url.indexOf(mask);
|
indSlide = url.indexOf(mask);
|
||||||
if (0 == indSlide) {
|
if (0 == indSlide) {
|
||||||
slideNum = parseInt(url.substring(mask.length));
|
this.slideNum = parseInt(url.substring(mask.length));
|
||||||
if (slideNum < 0) this.slideNum = 0;
|
if (slideNum < 0) this.slideNum = 0;
|
||||||
if (slideNum >= slidesCount) this.slideNum = slidesCount - 1;
|
if (slideNum >= slidesCount) this.slideNum = slidesCount - 1;
|
||||||
} else this.slideNum = 0;
|
} else this.slideNum = 0;
|
||||||
|
@ -121,7 +121,7 @@ class EditLinkController extends Component {
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
url = url + "showjump?jump=previousslide";
|
url = url + "showjump?jump=previousslide";
|
||||||
slidetip = _t.textPrevSlide;
|
slidetip = _t.textPreviousSlide;
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
url = url + "showjump?jump=firstslide";
|
url = url + "showjump?jump=firstslide";
|
||||||
|
@ -137,12 +137,12 @@ class EditLinkController extends Component {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
props.put_Value(url);
|
props.put_Value(url);
|
||||||
props.put_ToolTip(!tip ? slidetip : tip);
|
props.put_ToolTip(tip === '' ? slidetip : tip);
|
||||||
def_display = slidetip;
|
def_display = slidetip;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!linkInfo.displayDisabled) {
|
if (!linkInfo.displayDisabled) {
|
||||||
props.put_Text(!display ? def_display : display);
|
props.put_Text(display === '' ? def_display : display);
|
||||||
} else
|
} else
|
||||||
props.put_Text(null);
|
props.put_Text(null);
|
||||||
|
|
||||||
|
|
|
@ -13,8 +13,8 @@ const PageTypeLink = props => {
|
||||||
<Page>
|
<Page>
|
||||||
<Navbar title={_t.textLinkType} backLink={_t.textBack}/>
|
<Navbar title={_t.textLinkType} backLink={_t.textBack}/>
|
||||||
<List>
|
<List>
|
||||||
<ListItem title={_t.textExternalLink} radio checked={typeLink === 1} onClick={() => {setTypeLink(1); props.changeType(1); props.initLink();}}></ListItem>
|
<ListItem title={_t.textExternalLink} radio checked={typeLink === 1} onClick={() => {setTypeLink(1); props.changeType(1);}}></ListItem>
|
||||||
<ListItem title={_t.textSlideInThisPresentation} radio checked={typeLink === 0} onClick={() => {setTypeLink(0); props.changeType(0); props.initLink();}}></ListItem>
|
<ListItem title={_t.textSlideInThisPresentation} radio checked={typeLink === 0} onClick={() => {setTypeLink(0); props.changeType(0);}}></ListItem>
|
||||||
</List>
|
</List>
|
||||||
</Page>
|
</Page>
|
||||||
)
|
)
|
||||||
|
@ -32,7 +32,7 @@ const PageLinkTo = props => {
|
||||||
props.changeTo(type);
|
props.changeTo(type);
|
||||||
};
|
};
|
||||||
|
|
||||||
const [stateNumberTo, setNumberTo] = useState(0);
|
const [stateNumberTo, setNumberTo] = useState(props.numberTo);
|
||||||
|
|
||||||
const changeNumber = (curNumber, isDecrement) => {
|
const changeNumber = (curNumber, isDecrement) => {
|
||||||
setTypeTo(4);
|
setTypeTo(4);
|
||||||
|
@ -139,6 +139,7 @@ const PageLink = props => {
|
||||||
<ListItem link={'/edit-link-to/'} title={_t.textLinkTo} after={displayTo} routeProps={{
|
<ListItem link={'/edit-link-to/'} title={_t.textLinkTo} after={displayTo} routeProps={{
|
||||||
changeTo: changeTo,
|
changeTo: changeTo,
|
||||||
curTo: linkTo,
|
curTo: linkTo,
|
||||||
|
numberTo: numberTo,
|
||||||
initLink: props.initLink,
|
initLink: props.initLink,
|
||||||
slidesCount: props.slidesCount
|
slidesCount: props.slidesCount
|
||||||
}}/>
|
}}/>
|
||||||
|
|
Loading…
Reference in a new issue