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
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
ZTA4NTIwMzUwMDhhNzQyMzQ1MjViNzFhNzFlYjU1ZTQwZDFhMzI0Yg==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
YWFlZWM0M2FlZDBkODE5OGExYmVkYjU4YzA1ZmE1Yjg1YjcxZDIwMg==
|
5
7
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
|
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: "
|
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: "
|
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
|
-
|
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 %>')
|
data/lib/tawork/version.rb
CHANGED
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.
|
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-
|
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: []
|