homeland-wiki 0.2.2 → 0.3.0

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: b914a30a7ce9f3577e34e487864bb67f78b64cee
4
- data.tar.gz: 9db1f560c409a7ab0d7f151fdb1eb7950de2956a
3
+ metadata.gz: d90b7e70032d93f27d6990634376753bad2b8999
4
+ data.tar.gz: f9ac687c6fa4e642ec7d5f15ab567e3bd3a3e988
5
5
  SHA512:
6
- metadata.gz: 7c743243994e03e8540ff6713bd32d05099a38658d00d61af3a3a85fb64001d1350dd2b87da8cde386349da61878173709eadd0d264de798a06816aab21ed8ef
7
- data.tar.gz: 13c2ceb6f28d5dbf6e67e5c8137f2992b9873f3e9bb35e71ebea815f85d2dd96d553059a57ea73baf44b20b7be8536f81690d9fe6cee3decafe9268f430065b5
6
+ metadata.gz: f022f99c9daad87c22e2d5c5f4fc09a94afc17f325017e47c8b30e51670f5cb7aee1c02209d98ef410530a710c97ab27c52b8327c045bfabb8ce34754c12ae32
7
+ data.tar.gz: 3ef8903c434e0da5330cc1ab9436b0b836084f6410e27487455abdc12488058cde6e2fd0126fd00c65915a45537d324e27643796529695425b8c2c8820e72a1c
@@ -2,14 +2,14 @@
2
2
  # All this logic will automatically be available in application.js.
3
3
  # You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
4
4
  #
5
- window.PageView = Backbone.View.extend
5
+ window.WikiView = Backbone.View.extend
6
6
  el: "body"
7
7
  events:
8
8
  "click .editor-toolbar .edit a": "toggleEditView"
9
9
  "click .editor-toolbar .preview a": "togglePreviewView"
10
10
 
11
11
  initialize: (opts) ->
12
- @parentView = opts.parentView
12
+ @parentView = window._appView
13
13
  $("<div id='preview' class='markdown form-control'></div>").insertAfter( $('#page_body') )
14
14
  window._editor = new Editor()
15
15
 
@@ -30,3 +30,7 @@ window.PageView = Backbone.View.extend
30
30
  $('#preview').html(data)
31
31
  false
32
32
  false
33
+
34
+ document.addEventListener 'turbolinks:load', ->
35
+ if $('body').data('controller-name') in ['pages']
36
+ window._wikiView = new WikiView()
@@ -2,6 +2,6 @@ module Homeland
2
2
  module Wiki
3
3
  NAME = 'wiki'
4
4
  DESCRIPTION = 'Display Wiki channel in navbar for wike pages.'
5
- VERSION = '0.2.2'
5
+ VERSION = '0.3.0'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: homeland-wiki
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Griffin Qiu
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-03-20 00:00:00.000000000 Z
12
+ date: 2017-03-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -88,7 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
88
88
  version: '0'
89
89
  requirements: []
90
90
  rubyforge_project:
91
- rubygems_version: 2.6.8
91
+ rubygems_version: 2.6.11
92
92
  signing_key:
93
93
  specification_version: 4
94
94
  summary: Display Wiki channel in navbar for wike pages.