Skip to content

Commit 0f72a80

Browse files
committed
Cleanup.
1 parent b6f4492 commit 0f72a80

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
(function(window, document) {
22
window.AA = (window.AA || {})
3-
window.AA.editor = (window.AA.editor || {})
3+
var config = window.AA.editor = (window.AA.editor || {})
44

55
<% %w(aws_access_key_id s3_bucket storage_dir).each do |option| %>
6-
window.AA.editor.<%= option %> = '<%= ActiveAdmin::Editor.configuration.send(option.to_sym) %>'
6+
config.<%= option %> = '<%= ActiveAdmin::Editor.configuration.send(option.to_sym) %>'
77
<% end %>
88

9-
window.AA.editor.stylesheets = '<%= asset_path 'active_admin/editor/wysiwyg.css' %>'
10-
window.AA.editor.spinner = '<%= asset_path 'active_admin/editor/loader.gif' %>'
11-
window.AA.editor.uploads_enabled = <%= ActiveAdmin::Editor.configuration.s3_configured? %>
9+
config.stylesheets = '<%= asset_path 'active_admin/editor/wysiwyg.css' %>'
10+
config.spinner = '<%= asset_path 'active_admin/editor/loader.gif' %>'
11+
config.uploads_enabled = <%= ActiveAdmin::Editor.configuration.s3_configured? %>
1212
})(window, document)

0 commit comments

Comments
 (0)