rocket_docs 0.0.11 → 0.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ce3ab38f9119caae39146ade5325747199de221a
4
- data.tar.gz: bae834461f9a46f891c68c3a5eeac6fbbe8696c6
3
+ metadata.gz: dbc6c9f38def876f3be0abd3b7e6e7710fd297f6
4
+ data.tar.gz: fc078e52705914cc651b17bf50166c5cd5baf677
5
5
  SHA512:
6
- metadata.gz: 40812c65063748683033e9f9831c62dc51f8d9eed94708821d25562ee57113ac8870c558b05864b30b78ab6366b5ebb4537b58074ec5c9c29bc5bf864509e0bc
7
- data.tar.gz: f09dc45a5346e29e701cc414c22c60502f82adefe13727d8460145e2e0244367c973bb78394d2119e63451d5090c5bc1f5e9221ce6702d9833838e0fae90cec8
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
  });
@@ -1,3 +1,3 @@
1
1
  module RocketDocs
2
- VERSION = '0.0.11'
2
+ VERSION = '0.0.12'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rocket_docs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stanko Krtalić Rusendić