tawork 0.0.10 → 0.0.11

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 CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: d0cbf3fdbc08ae9f414d4ad260fed7fe045ff68d
4
- data.tar.gz: 43483a17aca3491d79818dd10a3215b9a5de9e9d
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ ZTA4NTIwMzUwMDhhNzQyMzQ1MjViNzFhNzFlYjU1ZTQwZDFhMzI0Yg==
5
+ data.tar.gz: !binary |-
6
+ YWFlZWM0M2FlZDBkODE5OGExYmVkYjU4YzA1ZmE1Yjg1YjcxZDIwMg==
5
7
  SHA512:
6
- metadata.gz: 7c76f9afbe69ba90410b02d7b52b7200228b55e77131f00efed288348e964b0109918bf92ec08320a48fbe454fe292bdcb3f39bcbe8bdd4ab325c628b2b88ed5
7
- data.tar.gz: 33c50c59b610d41296fb4cf3a35b8313707c90981dc5ba27c80d18d3a8d0698ee7b756d55bab95de4f422e3911787276b0f56c149261113bd7d3d386f2cdaf9c
8
+ metadata.gz: !binary |-
9
+ MTE3YWYxNjYxYjcxZDU2OTFkMWE3NTFhNTU5YzFhYzZkOTY0YTZjNGY5OTQw
10
+ M2Q5NTMxNGU4Mzg3MmY3ODBhNTZkNzYxODZhNWQzYzJmMTlhNTE4Mzk0OTc3
11
+ ODllZTdjZjA5ZTNjMTgwNzJlYWEyODJmYWU4Y2Y3ZDVhMTg0MmQ=
12
+ data.tar.gz: !binary |-
13
+ ZmM0ODg1NmIzNmI0MmFhYWVjOWU2MGE0YzdjMDY5MTI5OWY5YTM1ZjZhODBj
14
+ Zjk0MzU3ZjllMTIwZTlkM2IyZTcwOTA4ZTIwZmQ4ZjZkZDFkNjg1ZTk4MTJh
15
+ YTdhNTgwNDJkZjdhNDVlNTkwMGU1OWE4MmY5NzJhYjE4OThmNDI=
@@ -20,16 +20,17 @@ class Tawork.Views.AttachmentView extends Backbone.View
20
20
  uploader = new plupload.Uploader(
21
21
  runtimes: "html5"
22
22
  browse_button: "upload_attachment_#{@attachment_id}" # you can pass in id...
23
+ multi_selection: false
23
24
  container: document.getElementById("attachments") # ... or DOM Element itself
24
25
  url: "/attachments/#{@attachment_id}/upload"
25
26
  filters:
26
- max_file_size: "50mb"
27
+ max_file_size: "100mb"
27
28
  multipart_params:
28
29
  authenticity_token: $("meta[name=csrf-token]").attr('content')
29
30
 
30
31
  init:
31
32
  PostInit: ->
32
- $("#filelist").html("")
33
+ # $("#filelist").html("")
33
34
  # document.getElementById("uploadfiles").onclick = ->
34
35
  # uploader.start()
35
36
  # false
@@ -37,7 +37,7 @@ class Tawork.Views.PageView extends Backbone.View
37
37
  container: document.getElementById("attachments") # ... or DOM Element itself
38
38
  url: "/wiki/pages/#{@page_id}/attach"
39
39
  filters:
40
- max_file_size: "50mb"
40
+ max_file_size: "100mb"
41
41
  multipart_params:
42
42
  authenticity_token: $("meta[name=csrf-token]").attr('content')
43
43
 
@@ -49,10 +49,11 @@ class Tawork.Views.PageView extends Backbone.View
49
49
  # false
50
50
 
51
51
  FilesAdded: (up, files) ->
52
- plupload.each files, (file) ->
53
- $template = $($("#upload_template").clone().html())
54
- $template.attr("id", file.id).find(".filename").text(file.name + "(#{plupload.formatSize(file.size)})")
52
+ for file in files
53
+ $template = $($("#upload_template").clone().html()).addClass("file-#{file.id}")
54
+ $template.attr("id", file.id).find(".filename").text(file.name + "(#{plupload.formatSize(file.size)})").end().find(".bar").css(width: "0%")
55
55
  $("#filelist").append $template
56
+
56
57
  uploader.start()
57
58
 
58
59
 
@@ -1,2 +1 @@
1
- $(".page[data-page-id=<%= @page.id %>] .attachments").append('<%=j render 'attachment', attachment: @attachment %>')
2
-
1
+ $(".page[data-page-id=<%= @page.id %>] .attachments.table").append('<%=j render 'attachment', attachment: @attachment %>')
@@ -1,3 +1,3 @@
1
1
  module Tawork
2
- VERSION = '0.0.10'
2
+ VERSION = '0.0.11'
3
3
  end
metadata CHANGED
@@ -1,23 +1,23 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tawork
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adnan Ali
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-23 00:00:00.000000000 Z
11
+ date: 2014-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
15
- type: :runtime
16
15
  requirement: !ruby/object:Gem::Requirement
17
16
  requirements:
18
17
  - - ~>
19
18
  - !ruby/object:Gem::Version
20
19
  version: 4.1.0.beta1
20
+ type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
@@ -288,12 +288,12 @@ require_paths:
288
288
  - lib
289
289
  required_ruby_version: !ruby/object:Gem::Requirement
290
290
  requirements:
291
- - - '>='
291
+ - - ! '>='
292
292
  - !ruby/object:Gem::Version
293
293
  version: '0'
294
294
  required_rubygems_version: !ruby/object:Gem::Requirement
295
295
  requirements:
296
- - - '>='
296
+ - - ! '>='
297
297
  - !ruby/object:Gem::Version
298
298
  version: '0'
299
299
  requirements: []