browse-everything 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- N2U0NTAwZmMwMDAwZDIwMjg4NDU2NjA0ZTZhMmE5MzZlOTNjMjhkZQ==
4
+ NDAxZTg5MWYyYjc0YTMyNWZhODE5MjU3ZDJiMjhmOGMwYTFhOWNmYg==
5
5
  data.tar.gz: !binary |-
6
- MjgzMDA5NThiNDQ0ZTA5ZmYyMzg4ZWU2MjlhYWQyMzM3OTVhYzgzMQ==
6
+ NzRhZGY3MDE3ODE5NDM5NTg0ZDViYTljOGFkNGI0OGFiODY4ZjA4Zg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZTY0NDMxNjk2ZWVmYmMzMDQyNzAyNmYxNTE5MWIyMDZjM2Y3MTQxZTZiN2Iw
10
- ZWNjZDNmZDkyODFlNDY0ZTJhYzVjNGRjMDkzMWEzYWQ0ZmVjNTRlZmQ2Zjc0
11
- NDcxOGZlZDRjZTdiODZlNWFjMzIxYzZiNmI5NWI2MDBjODFiMTU=
9
+ NDY1Nzg5MGFjN2MzYTIwMjQxNDY1OTg2NjgwNzkyZjhiY2M5YTc3Mjg4ZjZk
10
+ NDgyYWU2YzUwNzNmYzRhNDFmNTZhOTFlMGMyYjEzMWRlZDRkYTFjZGFlNTBj
11
+ MjM0YjFkNDQxNWZhNTc0YjAzNTliYTA5ZmY3OGViMDgzOWVjZDE=
12
12
  data.tar.gz: !binary |-
13
- OWM0NTQ0ZGFiMDBlZjNmODUyYmU0MzY3YjE5ZWIzZjA4YzRhOGRhNzE2Nzgy
14
- N2EwYzc5ODY2YzE2NzkyNTFmNjFlMzM3OWE1ODk1YzM0NGIyNmUxZGMyMzFh
15
- MWZiYzI4ZmM3OGQyMGNkNjRlMzJkMGVjZDE4M2E2ZmY0ZDhjNGQ=
13
+ NDI0YzkwODIxMTYzMDhiYjNlODQyNDYzMTg5NDk1MDE1NTMzODE3MTNiOTQ4
14
+ NjNlYWNlYzcwNTg0YmNiZjVhYzRlYzIyZDI4NzI1YTI0NDY5MDE5N2ZiNjE5
15
+ YTk1NTk0MzE1ZTQwM2UwNmY5YmZkNWE0OGM0ZTI2OGFkMWJhMDY=
data/HISTORY.md CHANGED
@@ -1,3 +1,6 @@
1
+ ### 0.6.1 (2014-07-31)
2
+ - Fix auto-refresh after authorizing cloud provider
3
+
1
4
  ### 0.6.0 (2014-07-31)
2
5
  - Move provider list from left column to dropdown in header
3
6
 
@@ -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
- action = -> $('.ev-providers select').change()
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="<%=File.dirname(path)%>" data-tt-branch="<%=file.container? ? 'true' : 'false'%>">
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
- <% path = browse_everything_engine.contents_path(provider_name,file.id) %>
14
- <%= render :partial => 'file', :locals => { :file => file, :index => index, :path => path } %>
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>
@@ -1,7 +1,6 @@
1
1
  Authorized!
2
2
 
3
3
  <script>
4
- var caller = $($(window.opener).document)
5
- $('.ev-providers .ev-selected',caller).click()
4
+ window.opener.jQuery(window.opener.document).trigger('ev.refresh')
6
5
  window.close()
7
- </script>
6
+ </script>
@@ -1,3 +1,3 @@
1
1
  module BrowseEverything
2
- VERSION = "0.6.0"
2
+ VERSION = "0.6.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: browse-everything
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carolyn Cole