You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-08-10 22:11:50 +02:00
Doc: Allow setting the initial hosting type on the Plans page
This commit is contained in:
@@ -219,10 +219,7 @@
|
|||||||
$('.feature-description-' + featureId).toggle(200);
|
$('.feature-description-' + featureId).toggle(200);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>
|
|
||||||
|
|
||||||
|
|
||||||
<script>
|
|
||||||
const setHostingType = (type) => {
|
const setHostingType = (type) => {
|
||||||
const other = type === 'managed' ? 'self' : 'managed';
|
const other = type === 'managed' ? 'self' : 'managed';
|
||||||
$('.toggle-button-' + type).addClass('active');
|
$('.toggle-button-' + type).addClass('active');
|
||||||
@@ -244,6 +241,7 @@
|
|||||||
setHostingType('self');
|
setHostingType('self');
|
||||||
});
|
});
|
||||||
|
|
||||||
setHostingType('managed');
|
const initialHostingType = urlQuery.get('hosting') ? urlQuery.get('hosting') : 'managed';
|
||||||
|
setHostingType(initialHostingType);
|
||||||
</script>
|
</script>
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user