el_vfs_client 0.0.5.1 → 0.0.5.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -3,12 +3,11 @@ require 'configliere'
|
|
3
3
|
require 'uuid'
|
4
4
|
|
5
5
|
module ElVfsClient
|
6
|
-
class ElFinderController <
|
6
|
+
class ElFinderController < ActionController::Base
|
7
7
|
respond_to :json, :html
|
8
8
|
|
9
9
|
def show
|
10
|
-
|
11
|
-
|
10
|
+
@root_path = root_path
|
12
11
|
render :file => 'el_finder/layout', :layout => false
|
13
12
|
end
|
14
13
|
|
@@ -45,11 +44,12 @@ module ElVfsClient
|
|
45
44
|
private
|
46
45
|
def url
|
47
46
|
url = "#{Settings[:el_vfs][:protocol]}://#{Settings[:el_vfs][:host]}:#{Settings[:el_vfs][:port]}/api/el_finder/v2"
|
48
|
-
url <<
|
47
|
+
url << params.delete(:root_path)
|
48
|
+
return url
|
49
49
|
end
|
50
50
|
|
51
|
-
def
|
52
|
-
|
51
|
+
def root_path
|
52
|
+
PathInterpolator.path(params)
|
53
53
|
end
|
54
54
|
end
|
55
55
|
end
|
@@ -18,6 +18,9 @@
|
|
18
18
|
|
19
19
|
$('#elfinder').elfinder({
|
20
20
|
url: '/api/el_finder/v2',
|
21
|
+
customData: {
|
22
|
+
root_path: '<%= @root_path %>'
|
23
|
+
},
|
21
24
|
height: window.innerHeight - 23,
|
22
25
|
lang: 'ru',
|
23
26
|
ui: ['toolbar'],
|
@@ -31,7 +34,7 @@
|
|
31
34
|
resizable: false
|
32
35
|
}).elfinder('instance');
|
33
36
|
|
34
|
-
$('#root_path', window.parent.document).val('<%=
|
37
|
+
$('#root_path', window.parent.document).val('<%= @root_path %>');
|
35
38
|
});
|
36
39
|
//]]>
|
37
40
|
</script>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: el_vfs_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.5.
|
4
|
+
version: 0.0.5.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -12,11 +12,11 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2011-
|
15
|
+
date: 2011-12-02 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: configliere
|
19
|
-
requirement: &
|
19
|
+
requirement: &12549160 !ruby/object:Gem::Requirement
|
20
20
|
none: false
|
21
21
|
requirements:
|
22
22
|
- - ! '>='
|
@@ -24,10 +24,10 @@ dependencies:
|
|
24
24
|
version: '0'
|
25
25
|
type: :runtime
|
26
26
|
prerelease: false
|
27
|
-
version_requirements: *
|
27
|
+
version_requirements: *12549160
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: curb
|
30
|
-
requirement: &
|
30
|
+
requirement: &12547940 !ruby/object:Gem::Requirement
|
31
31
|
none: false
|
32
32
|
requirements:
|
33
33
|
- - ! '>='
|
@@ -35,10 +35,10 @@ dependencies:
|
|
35
35
|
version: '0'
|
36
36
|
type: :runtime
|
37
37
|
prerelease: false
|
38
|
-
version_requirements: *
|
38
|
+
version_requirements: *12547940
|
39
39
|
- !ruby/object:Gem::Dependency
|
40
40
|
name: uuid
|
41
|
-
requirement: &
|
41
|
+
requirement: &12563540 !ruby/object:Gem::Requirement
|
42
42
|
none: false
|
43
43
|
requirements:
|
44
44
|
- - ! '>='
|
@@ -46,10 +46,10 @@ dependencies:
|
|
46
46
|
version: '0'
|
47
47
|
type: :runtime
|
48
48
|
prerelease: false
|
49
|
-
version_requirements: *
|
49
|
+
version_requirements: *12563540
|
50
50
|
- !ruby/object:Gem::Dependency
|
51
51
|
name: rails
|
52
|
-
requirement: &
|
52
|
+
requirement: &12562680 !ruby/object:Gem::Requirement
|
53
53
|
none: false
|
54
54
|
requirements:
|
55
55
|
- - ! '>='
|
@@ -57,7 +57,7 @@ dependencies:
|
|
57
57
|
version: '0'
|
58
58
|
type: :runtime
|
59
59
|
prerelease: false
|
60
|
-
version_requirements: *
|
60
|
+
version_requirements: *12562680
|
61
61
|
description: Description of ElVfsClient.
|
62
62
|
email:
|
63
63
|
- mail@openteam.ru
|
@@ -121,18 +121,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
121
121
|
- - ! '>='
|
122
122
|
- !ruby/object:Gem::Version
|
123
123
|
version: '0'
|
124
|
-
segments:
|
125
|
-
- 0
|
126
|
-
hash: 862774303878164287
|
127
124
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
128
125
|
none: false
|
129
126
|
requirements:
|
130
127
|
- - ! '>='
|
131
128
|
- !ruby/object:Gem::Version
|
132
129
|
version: '0'
|
133
|
-
segments:
|
134
|
-
- 0
|
135
|
-
hash: 862774303878164287
|
136
130
|
requirements: []
|
137
131
|
rubyforge_project:
|
138
132
|
rubygems_version: 1.8.10
|