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 +4 -4
- data/Gemfile.lock +1 -1
- data/app/controllers/ds_media_library/resources_controller.rb +2 -1
- data/app/views/ds_media_library/manage/index.html.slim +2 -1
- data/gemfiles/capybara_2.gemfile.lock +1 -1
- data/gemfiles/capybara_3.gemfile.lock +1 -1
- data/gemfiles/rails_5.0.gemfile.lock +1 -1
- data/gemfiles/rails_5.1.gemfile.lock +1 -1
- data/gemfiles/rails_5.2.gemfile.lock +1 -1
- data/lib/ds_media_library/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8084e1687de2d477d6fdb0f02877c70fff3bff54
|
4
|
+
data.tar.gz: 453627b93b0c7758940a2c0c677f4ea00ed3ba28
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cebb6f6fc393ef11026adea9a6ab32768e2ed8e38bb4adf90234bbaa855dfa7f3afb82d88edcc095c14fa7e62f962c6f311bda8a6e6ba61a5026db36372fe1e3
|
7
|
+
data.tar.gz: bdae522fde36bb4eb6d744c3b6c1d1371f95cb461e5ff15f215c3ed586f1175be8c299ea2019008266bf4ae46ad02dfcb5aa5fdf6865385238eefa77acbd604d
|
data/Gemfile.lock
CHANGED
@@ -30,7 +30,8 @@ module DSMediaLibrary
|
|
30
30
|
end
|
31
31
|
|
32
32
|
def destroy
|
33
|
-
|
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"
|
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"
|