activeadmin-settings 0.2.9 → 0.3.0

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.
@@ -1,3 +1,3 @@
1
1
  module ActiveadminSettings
2
- VERSION = "0.2.9"
2
+ VERSION = "0.3.0"
3
3
  end
@@ -5,14 +5,16 @@ enable_redactor = ->
5
5
  # the problem is that not current redactors are not
6
6
  # clickable after init.
7
7
 
8
- window.redactor_settings =
9
- buttons: ['html', '|',
10
- 'formatting', '|',
11
- 'bold', 'italic', 'deleted', '|',
12
- 'unorderedlist', 'orderedlist', 'outdent', 'indent', '|',
13
- 'image', 'video', 'file', 'table', 'link', '|',
14
- 'alignleft', 'aligncenter', 'alignright', 'justify', '|',
15
- 'fullscreen' ]
8
+ unless window.redactor_settings
9
+ window.redactor_settings = {}
10
+
11
+ window.redactor_settings["buttons"] = [ 'html', '|',
12
+ 'formatting', '|',
13
+ 'bold', 'italic', 'deleted', '|',
14
+ 'unorderedlist', 'orderedlist', 'outdent', 'indent', '|',
15
+ 'image', 'video', 'file', 'table', 'link', '|',
16
+ 'alignleft', 'aligncenter', 'alignright', 'justify', '|',
17
+ 'fullscreen' ]
16
18
 
17
19
  # after tab was clicked there is a workaround to turn on redactor
18
20
  $('#settings_tabs').bind 'easytabs:after', (event, $clicked, $targetPanel, settings) ->
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeadmin-settings
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.9
4
+ version: 0.3.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -103,7 +103,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
103
103
  version: '0'
104
104
  segments:
105
105
  - 0
106
- hash: 4606963073682429613
106
+ hash: 3238340050457452999
107
107
  required_rubygems_version: !ruby/object:Gem::Requirement
108
108
  none: false
109
109
  requirements: