Stable Only unchecked by default in docs.

Having it on by default makes it difficult
for new users to find commonly used functionality.
This commit is contained in:
vmalaret
2015-03-30 10:37:50 +02:00
parent 254039a6ab
commit 3576f8b793
2 changed files with 3 additions and 3 deletions

View File

@@ -74,7 +74,7 @@ $(function () {
var stabilityToggle = $('#stability-toggle');
stabilityToggle.change(function() {
unstable.toggleClass('hidden', this.checked);
var search = this.checked ? '' : '?unstable=true';
var search = this.checked ? '?stable=true' : '';
links.each(function(i, el) {
this.href = this.pathname + search + this.hash;
});
@@ -88,6 +88,6 @@ $(function () {
links.each(function(i, el) {
this.href = this.pathname + search + this.hash;
});
stabilityToggle.prop('checked', search !== '?unstable=true');
stabilityToggle.prop('checked', search === '?stable=true');
unstable.toggleClass('hidden', stabilityToggle[0].checked);
});