Rename flag to 'stableonly'

This commit is contained in:
vmalaret
2015-04-01 09:26:17 +02:00
parent 3576f8b793
commit 4daf08ec1d

View File

@@ -74,7 +74,7 @@ $(function () {
var stabilityToggle = $('#stability-toggle');
stabilityToggle.change(function() {
unstable.toggleClass('hidden', this.checked);
var search = this.checked ? '?stable=true' : '';
var search = this.checked ? '?stableonly=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 === '?stable=true');
stabilityToggle.prop('checked', search === '?stableonly=true');
unstable.toggleClass('hidden', stabilityToggle[0].checked);
});