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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d90b7e70032d93f27d6990634376753bad2b8999
|
4
|
+
data.tar.gz: f9ac687c6fa4e642ec7d5f15ab567e3bd3a3e988
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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 =
|
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()
|
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.
|
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-
|
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.
|
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.
|