Merge pull request #3415 from malaretv/stable-only-off
Stable Only unchecked by default.
This commit is contained in:
@@ -74,7 +74,7 @@ $(function () {
|
|||||||
var stabilityToggle = $('#stability-toggle');
|
var stabilityToggle = $('#stability-toggle');
|
||||||
stabilityToggle.change(function() {
|
stabilityToggle.change(function() {
|
||||||
unstable.toggleClass('hidden', this.checked);
|
unstable.toggleClass('hidden', this.checked);
|
||||||
var search = this.checked ? '' : '?unstable=true';
|
var search = this.checked ? '?stableonly=true' : '';
|
||||||
links.each(function(i, el) {
|
links.each(function(i, el) {
|
||||||
this.href = this.pathname + search + this.hash;
|
this.href = this.pathname + search + this.hash;
|
||||||
});
|
});
|
||||||
@@ -88,6 +88,6 @@ $(function () {
|
|||||||
links.each(function(i, el) {
|
links.each(function(i, el) {
|
||||||
this.href = this.pathname + search + this.hash;
|
this.href = this.pathname + search + this.hash;
|
||||||
});
|
});
|
||||||
stabilityToggle.prop('checked', search !== '?unstable=true');
|
stabilityToggle.prop('checked', search === '?stableonly=true');
|
||||||
unstable.toggleClass('hidden', stabilityToggle[0].checked);
|
unstable.toggleClass('hidden', stabilityToggle[0].checked);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
<div class="container">
|
<div class="container">
|
||||||
<a class="brand" href="/"><img src="../resources/logo-70x70.png"> OpenLayers 3</a>
|
<a class="brand" href="/"><img src="../resources/logo-70x70.png"> OpenLayers 3</a>
|
||||||
<label id="stability">
|
<label id="stability">
|
||||||
<input type="checkbox" id="stability-toggle" checked> Stable Only
|
<input type="checkbox" id="stability-toggle"> Stable Only
|
||||||
</label>
|
</label>
|
||||||
<ul class="nav navbar-nav pull-right">
|
<ul class="nav navbar-nav pull-right">
|
||||||
<li><a href="../doc">Docs</a></li>
|
<li><a href="../doc">Docs</a></li>
|
||||||
|
|||||||
Reference in New Issue
Block a user