1
0
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:
Laurent Cozic
2025-07-31 14:48:09 +01:00
parent 56b3cc3dc2
commit e3c2589a12

View File

@@ -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>