dorsale 2.2.1 → 2.2.2

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,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 601a0abd6bb2d94e337dc1ef2c86ead60929cb7b
4
- data.tar.gz: 2e97ac1b6964a7921f88d2f5e6f23c127c440134
3
+ metadata.gz: cad54896cff5fe72d66547ddd7bc4bfe9466b41f
4
+ data.tar.gz: eb5ca238c6bf71eabd71a6d00271cb54a867cc06
5
5
  SHA512:
6
- metadata.gz: 6e196d58c066e70e6a3185e076d28cd43e33661f3d3befde3934b0430e4ef795df7ff2141cf384b9dd2a74f136d9c0fbefc47c31a4183a5b10dafd24524beacf
7
- data.tar.gz: cf0ba9e645236be9fcc4ac5b54459c6016e06b6fbd8eec5a23b08776575ed437ea7ed5392d5822177ab0ddfe731c311267b508b121b2b4047863840f7f842317
6
+ metadata.gz: 40134a93cbfd6b1c909cbfe705e27dd369193cc91eaf78fd867e27d4684775ab7e7d642045b1ca90b7de8605d3d2b59861e20d2a8ebd6a5786511e76a83358c2
7
+ data.tar.gz: 45abdb71787ced85d390f14a399ca4895f532859e6a5a06e19ee5ab998eb60cc9e67d95c3e6b52b4ada2bcea7dbac06f11dbd1b7b6d3d6d4f0900da44078e5e0
@@ -6,9 +6,11 @@ $(document).on "ready page:load", ->
6
6
  this.selected = true
7
7
 
8
8
  form.find("input").map ->
9
- this.value = "" unless this.type.match(/submit|hidden|button/)
9
+ return if this.type.match(/submit|hidden|button/)
10
+ this.value = $(this).data("default-value") || ""
10
11
 
11
- form.find("textarea").val("")
12
+ form.find("textarea").map ->
13
+ this.value = $(this).data("default-value") || ""
12
14
 
13
15
  form.find("select").map ->
14
16
  this.selectize.clear() if this.selectize
@@ -6,16 +6,17 @@
6
6
  th = Dorsale::Flyboy::TaskComment.t(:description)
7
7
  th
8
8
  tbody
9
- tr
10
- td.task_progress
11
- = f.input :progress, label: false
12
-
13
- td.description
14
- = f.input :description, label: false
15
-
16
- td.actions
17
- = f.hidden_field :task_id
18
- input.btn.btn-success type="submit" value=t("actions.create")
9
+ - if can?(:update, @task)
10
+ tr
11
+ td.task_progress
12
+ = f.input :progress, label: false
13
+
14
+ td.description
15
+ = f.input :description, label: false
16
+
17
+ td.actions
18
+ = f.hidden_field :task_id
19
+ input.btn.btn-success type="submit" value=t("actions.create")
19
20
 
20
21
  - @task.reload.comments.map do |comment|
21
22
  tr
@@ -1,3 +1,3 @@
1
1
  module Dorsale
2
- VERSION = "2.2.1"
2
+ VERSION = "2.2.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dorsale
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.1
4
+ version: 2.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - agilidée
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-25 00:00:00.000000000 Z
11
+ date: 2015-11-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails