[DE PE SSE mobile] Fix Bug 59790
This commit is contained in:
parent
bdf39b536f
commit
38c1a37940
|
@ -15,7 +15,7 @@ class AddLinkController extends Component {
|
|||
|
||||
closeModal () {
|
||||
if ( Device.phone ) {
|
||||
f7.popup.close('#add-link-popup');
|
||||
f7.popup.close('.add-popup');
|
||||
} else {
|
||||
f7.popover.close('#add-link-popover');
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ class AddLinkController extends Component {
|
|||
props.put_ToolTip(tip);
|
||||
|
||||
api.add_Hyperlink(props);
|
||||
this.props.isNavigate ? f7.views.current.router.back() : this.closeModal();
|
||||
this.props.isNavigate && !Device.phone ? f7.views.current.router.back() : this.closeModal();
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
|
|
|
@ -28,7 +28,7 @@ class AddLinkController extends Component {
|
|||
|
||||
closeModal () {
|
||||
if ( Device.phone ) {
|
||||
f7.popup.close('#add-link-popup');
|
||||
f7.popup.close('.add-popup');
|
||||
} else {
|
||||
f7.popover.close('#add-link-popover');
|
||||
}
|
||||
|
@ -112,7 +112,7 @@ class AddLinkController extends Component {
|
|||
props.put_Text(null);
|
||||
|
||||
api.add_Hyperlink(props);
|
||||
this.props.isNavigate ? f7.views.current.router.back() : this.closeModal();
|
||||
this.props.isNavigate && !Device.phone ? f7.views.current.router.back() : this.closeModal();
|
||||
}
|
||||
|
||||
getTextDisplay () {
|
||||
|
|
|
@ -110,14 +110,13 @@ class AddLinkController extends Component {
|
|||
}
|
||||
|
||||
link.asc_setTooltip(args.tooltip);
|
||||
|
||||
api.asc_insertHyperlink(link);
|
||||
this.props.isNavigate ? f7.views.current.router.back() : this.closeModal();
|
||||
this.props.isNavigate && !Device.phone ? f7.views.current.router.back() : this.closeModal();
|
||||
}
|
||||
|
||||
closeModal () {
|
||||
if ( Device.phone ) {
|
||||
f7.popup.close('#add-link-popup');
|
||||
f7.popup.close('.add-popup');
|
||||
} else {
|
||||
f7.popover.close('#add-link-popover');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue