browse-everything 0.6.0 → 0.6.1
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.
- checksums.yaml +8 -8
- data/HISTORY.md +3 -0
- data/app/assets/javascripts/browse_everything/behavior.js.coffee +7 -2
- data/app/views/browse_everything/_file.html.erb +1 -1
- data/app/views/browse_everything/_files.html.erb +2 -2
- data/app/views/browse_everything/auth.html.erb +2 -3
- data/lib/browse_everything/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NDAxZTg5MWYyYjc0YTMyNWZhODE5MjU3ZDJiMjhmOGMwYTFhOWNmYg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NzRhZGY3MDE3ODE5NDM5NTg0ZDViYTljOGFkNGI0OGFiODY4ZjA4Zg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NDY1Nzg5MGFjN2MzYTIwMjQxNDY1OTg2NjgwNzkyZjhiY2M5YTc3Mjg4ZjZk
|
10
|
+
NDgyYWU2YzUwNzNmYzRhNDFmNTZhOTFlMGMyYjEzMWRlZDRkYTFjZGFlNTBj
|
11
|
+
MjM0YjFkNDQxNWZhNTc0YjAzNTliYTA5ZmY3OGViMDgzOWVjZDE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NDI0YzkwODIxMTYzMDhiYjNlODQyNDYzMTg5NDk1MDE1NTMzODE3MTNiOTQ4
|
14
|
+
NjNlYWNlYzcwNTg0YmNiZjVhYzRlYzIyZDI4NzI1YTI0NDY5MDE5N2ZiNjE5
|
15
|
+
YTk1NTk0MzE1ZTQwM2UwNmY5YmZkNWE0OGM0ZTI2OGFkMWJhMDY=
|
data/HISTORY.md
CHANGED
@@ -49,6 +49,7 @@ $ ->
|
|
49
49
|
async: false # Must be false, otherwise loadBranch happens after showChildren?
|
50
50
|
url: $('a.ev-link',node.row).attr('href')
|
51
51
|
data:
|
52
|
+
parent: node.row.data('tt-id')
|
52
53
|
accept: dialog.data('context').opts.accept
|
53
54
|
context: dialog.data('context').opts.context
|
54
55
|
.done (html) ->
|
@@ -70,6 +71,9 @@ $ ->
|
|
70
71
|
set_size '.ev-kind', 0.3
|
71
72
|
set_size '.ev-date', 0.2
|
72
73
|
|
74
|
+
refreshFiles = ->
|
75
|
+
$('.ev-providers select').change()
|
76
|
+
|
73
77
|
$(window).on('resize', -> sizeColumns($('table#file-list')))
|
74
78
|
|
75
79
|
$.fn.browseEverything = (options) ->
|
@@ -79,12 +83,13 @@ $ ->
|
|
79
83
|
$(this).click () ->
|
80
84
|
dialog.data('context',ctx)
|
81
85
|
dialog.load ctx.opts.route, () ->
|
82
|
-
|
83
|
-
setTimeout action, 500
|
86
|
+
setTimeout refreshFiles, 500
|
84
87
|
ctx.callbacks.show.fire()
|
85
88
|
dialog.modal('show')
|
86
89
|
ctx.callback_proxy
|
87
90
|
|
91
|
+
$(document).on 'ev.refresh', (event) -> refreshFiles()
|
92
|
+
|
88
93
|
$(document).on 'click', 'button.ev-cancel', (event) ->
|
89
94
|
event.preventDefault()
|
90
95
|
dialog.data('context').callbacks.cancel.fire()
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<% unless file.relative_parent_path? %>
|
2
|
-
<tr data-ev-location="<%= file.location %>" data-tt-id="<%=path%>" data-tt-parent-id="<%=
|
2
|
+
<tr data-ev-location="<%= file.location %>" data-tt-id="<%=path%>" data-tt-parent-id="<%=parent%>" data-tt-branch="<%=file.container? ? 'true' : 'false'%>">
|
3
3
|
<td class="<%=file.container? ? 'ev-container' : 'ev-file'%> ev-file-name">
|
4
4
|
<span class="<%=file.container? ? 'folder' : 'file'%>">
|
5
5
|
<%= link_to(file.name, browse_everything_engine.contents_path(provider_name,file.id), {:class=>'ev-link'}) %>
|
@@ -10,8 +10,8 @@
|
|
10
10
|
</thead>
|
11
11
|
<% provider.contents(browse_path).each_with_index do |file,index| %>
|
12
12
|
<% if is_acceptable?(file) %>
|
13
|
-
|
14
|
-
|
13
|
+
<%= render :partial => 'file', :locals => { :file => file, :index => index,
|
14
|
+
:path => browse_everything_engine.contents_path(provider_name,file.id), :parent => params[:parent] } %>
|
15
15
|
<% end %>
|
16
16
|
<% end %>
|
17
17
|
</table>
|