ds_media_library 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,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: de21cab77cd97d9ada54714658b0089bea6d9238
4
- data.tar.gz: 1c6da355530932c645d6f6aaf446fe1027b4270c
3
+ metadata.gz: 8084e1687de2d477d6fdb0f02877c70fff3bff54
4
+ data.tar.gz: 453627b93b0c7758940a2c0c677f4ea00ed3ba28
5
5
  SHA512:
6
- metadata.gz: 294a73e8a5b661addbe220d8c33c9e68d5ade5bd8a855593db6ba05b4546395d78a243e341c013bdab6de80763d7d552c430d1fccb3f27f1168b8b8bff628587
7
- data.tar.gz: 6c737006823247c15c64218c5a3b9a10b554dae5ba999b834ff601442d3e574bf713ddfb916829402d28406021f8649366ab6676bf045ee8456a4ffe30ec742f
6
+ metadata.gz: cebb6f6fc393ef11026adea9a6ab32768e2ed8e38bb4adf90234bbaa855dfa7f3afb82d88edcc095c14fa7e62f962c6f311bda8a6e6ba61a5026db36372fe1e3
7
+ data.tar.gz: bdae522fde36bb4eb6d744c3b6c1d1371f95cb461e5ff15f215c3ed586f1175be8c299ea2019008266bf4ae46ad02dfcb5aa5fdf6865385238eefa77acbd604d
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ds_media_library (0.6.0)
4
+ ds_media_library (0.6.1)
5
5
  awesome_nested_set
6
6
  coffee-rails
7
7
  ds_node
@@ -30,7 +30,8 @@ module DSMediaLibrary
30
30
  end
31
31
 
32
32
  def destroy
33
- DSNode::Resource.where(resourcesid: params[:resource_ids]).update hidden: true
33
+ ids = Array(params[:id]) + Array(params[:resource_ids])
34
+ DSNode::Resource.where(resourcesid: ids).update hidden: true
34
35
  redirect_to :resources, notice: "Media deleted"
35
36
  end
36
37
 
@@ -18,7 +18,8 @@
18
18
  = folder.name
19
19
  button.dsml-move-button Move
20
20
  em or
21
- button.dsml-delete-multiple name="_method" value="delete" Delete all selected
21
+ button.dsml-delete-multiple name="_method" value="delete" data-confirm="Are you sure you want to delete these media items? Note that this will just remove them from the media library."
22
+ | Delete all selected
22
23
 
23
24
  .dsml-buttons-right
24
25
  = link_to "Add new folder", [:new, :folder], class: "dsml-add-button"
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- ds_media_library (0.6.0)
4
+ ds_media_library (0.6.1)
5
5
  awesome_nested_set
6
6
  coffee-rails
7
7
  ds_node
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- ds_media_library (0.6.0)
4
+ ds_media_library (0.6.1)
5
5
  awesome_nested_set
6
6
  coffee-rails
7
7
  ds_node
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- ds_media_library (0.6.0)
4
+ ds_media_library (0.6.1)
5
5
  awesome_nested_set
6
6
  coffee-rails
7
7
  ds_node
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- ds_media_library (0.6.0)
4
+ ds_media_library (0.6.1)
5
5
  awesome_nested_set
6
6
  coffee-rails
7
7
  ds_node
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- ds_media_library (0.6.0)
4
+ ds_media_library (0.6.1)
5
5
  awesome_nested_set
6
6
  coffee-rails
7
7
  ds_node
@@ -1,3 +1,3 @@
1
1
  module DSMediaLibrary
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: ds_media_library
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
  - Micah Geisel