flammarion_rails 0.2.7 → 0.2.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3aa363f05db0c6968af7ac03b5f15da22460ba1b
4
- data.tar.gz: 751151fe862bf39fcc73c23d6c8e713ff7e8bd0e
3
+ metadata.gz: de84ce9fe4a1b968b424e9f0853c36a0b4fd9e21
4
+ data.tar.gz: 657820ac75806e52bb1c3a5fc325f25e2189803b
5
5
  SHA512:
6
- metadata.gz: 3689e410958d20f7f4eaeed8778d60e90ef21c90e46b0d494c91ede89c933e1327b394ec8a62e5587aeb5fc866dff41ab1369c974eedd9b86c54a6b5edd05720
7
- data.tar.gz: 5db0e01f807778c4b4253210a83a69461fcf112d5c8d6556108dc62aca219c4a9ca51b0886efaaea99d9a5e3983ae4415dc4a0e4a6b91150a513387578fb1bd0
6
+ metadata.gz: b605ce968ea6475cd3449d1b8a32620d6a319bd33b57c39107be4fe069df6749a3c7c04a4d1c9aa13c0b46e91ff4a4381f6c01d0884caf6e1be35192aed4e21d
7
+ data.tar.gz: aa2a5d80c23bf3b32ecced2c5c2dd201f68ecea7d05fa80f4f3f9b6b6fd722df942732dc7338e05747c2567911b1463a321bcfd507912b278c504cb33961c0b6
data/README.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # FlammarionRails
2
2
 
3
+ * TODO: rake asset clear cache before precompile
4
+
5
+ * TODO: take into account the url anchor for scrollTo
6
+
3
7
  * TODO: accept + mime + content_type + session + referer + pjax + csrf... or reuse middlewares?
4
8
 
5
9
  * TODO: change before actions for an array of hashes
@@ -37,6 +37,7 @@ if $.pjax?
37
37
  new_page.html(ws_data.body)
38
38
  container = new_page.find('[data-pjax-container]')
39
39
  $('[data-pjax-container]').html(container.html())
40
+ $(window).scrollTop(0)
40
41
  $(document).trigger('rails_admin.dom_ready')
41
42
 
42
43
  # Submit
@@ -1,3 +1,3 @@
1
1
  module FlammarionRails
2
- VERSION = '0.2.7'
2
+ VERSION = '0.2.8'
3
3
  end
data/public/index.js CHANGED
@@ -83,6 +83,7 @@ ws.onmessage_actions = {
83
83
  var page = document.open("text/html", "replace");
84
84
  page.write(ws_data.body);
85
85
  page.close();
86
+ window.scrollTo(0, 0);
86
87
  },
87
88
  error: function (event) {
88
89
  console.log(ws_data.title);
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flammarion_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrice Lebel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-14 00:00:00.000000000 Z
11
+ date: 2016-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails