rocket_docs 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/rocket_docs/application.js +6 -1
- data/lib/rocket_docs/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dbc6c9f38def876f3be0abd3b7e6e7710fd297f6
|
4
|
+
data.tar.gz: fc078e52705914cc651b17bf50166c5cd5baf677
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d2e4c419bba395fb500081b9fbd88ccc230c200cb66d9756ab86732fae1d3d6847972fc89af3470b70d5c2b3e83d024e28bd9e8d537de65e27dd74313154779
|
7
|
+
data.tar.gz: 6b3fda04f1c4818b95c2edc1c11c4c27bca763d9201337ac06976fb5767f442d5e621b9b060a3e000187bd97d9ef6974fea96f53795280db5caf630b19380995
|
@@ -213,7 +213,7 @@ $(document).ready(function () {
|
|
213
213
|
// URL Accordion Anchors //
|
214
214
|
///////////////////////////
|
215
215
|
|
216
|
-
if(window.location.hash !== '') {
|
216
|
+
if(window.location.hash !== '' && $(window.location.hash).length !== 0) {
|
217
217
|
var $element = $(window.location.hash);
|
218
218
|
$("#accordion .in").removeClass("in");
|
219
219
|
var $parents = $element.parents('.panel-collapse');
|
@@ -221,4 +221,9 @@ $(document).ready(function () {
|
|
221
221
|
$element.addClass('in');
|
222
222
|
$('html,body').animate({scrollTop: $element.offset().top}, 'fast');
|
223
223
|
}
|
224
|
+
|
225
|
+
$('[data-toggle="collapse"]').click(function() {
|
226
|
+
var $this = $(this);
|
227
|
+
window.location.hash = $this.attr('href');
|
228
|
+
});
|
224
229
|
});
|
data/lib/rocket_docs/version.rb
CHANGED