-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathinit.rb
More file actions
18 lines (15 loc) · 771 Bytes
/
init.rb
File metadata and controls
18 lines (15 loc) · 771 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
require 'redmine_jquery_file_upload'
Redmine::Plugin.register :redmine_jquery_file_upload do
name 'Redmine Jquery File Upload plugin'
author 'Dmitry Kovalenok'
description 'This plugin replace native file uploader by advanced JqueryFileUploader, which allows multiple file upload and drag&drop'
version '0.0.1'
url 'https://github.com/twinslash/redmine_jquery_file_upload'
author_url 'https://github.com/twinslash'
settings :default => { :tmpdir => 'tmp/jquery_files' }
# clipboard image paste plugin global variables
configfile = File.join(File.dirname(__FILE__), 'config', 'settings.yml')
$clipboard_image_paste_config = YAML::load_file(configfile)
redmineVer = Redmine::VERSION.to_a
$clipboard_image_paste_has_jquery = redmineVer[0] > 2
end