thecore_ui_rails_admin 3.5.1 → 3.5.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 +4 -4
- data/app/assets/javascripts/rails_admin/custom/ui.js.erb +7 -0
- data/app/assets/stylesheets/rails_admin/custom/theming.scss +4 -2
- data/config/locales/en.thecore_ui_ra.yml +1 -0
- data/config/locales/it.thecore_ui_ra.yml +1 -0
- data/lib/thecore_ui_rails_admin/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f45c9536b8cd8fe5b7a9c4586f015a7d2ea8429e636fae97cd2bed169288a53
|
4
|
+
data.tar.gz: e78ed33775d4a875c48f1d4a793fe6b128acb32c9abfeea7a28dc125c29471b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb24dcd6e98d0100735efb15718eaaec272f08ba45c4335478bb65c592312a0f998e8038b0a27bb8875b5b7ba481cef83691e773e3f209772c78c8875bc9055a
|
7
|
+
data.tar.gz: 655bc921fc96c09d305f6a3a41b3d224937d93552107a1aa5363aadeaa2b16fe96a3115bf53114020e8546cfbc8f36fae63e284c9ae8b582132b8ef72e88dc57
|
@@ -48,6 +48,13 @@ $(document).on('turbo:load', function (event) {
|
|
48
48
|
}
|
49
49
|
});
|
50
50
|
|
51
|
+
// The a element found at #list form div div.row div.col-sm-6:nth-child(2) must throw a "Are you sure confirmation This operation can slow down the system." nag, which only if accepted will follow the link.
|
52
|
+
const export_all_element = document.querySelector("#list form div div.row div.col-sm-6:nth-child(2) a")
|
53
|
+
var confirmIt = function (e) {
|
54
|
+
if (!confirm('<%=I18n.t :are_you_sure %>')) e.preventDefault();
|
55
|
+
};
|
56
|
+
if (export_all_element) export_all_element.addEventListener('click', confirmIt, false);
|
57
|
+
|
51
58
|
// If URL ends with /bulk_action, uncheck all checkboxes
|
52
59
|
if (currentURL.pathname.endsWith('/bulk_action')) {
|
53
60
|
const checkboxes = document.querySelectorAll('input[type="checkbox"][name^="schema"]');
|
@@ -73,9 +73,11 @@ body > div.container-fluid > div > div.col-sm-9.col-sm-offset-3.col-md-10.col-md
|
|
73
73
|
}
|
74
74
|
|
75
75
|
// Hide and remove export for found objects, is safer to have the possibility to export only selected rows to avoid big CPU usage.
|
76
|
-
.export_collection_link
|
77
|
-
#list form div div.row div.col-sm-6:nth-child(2) {
|
76
|
+
.export_collection_link {
|
78
77
|
display: none;
|
79
78
|
}
|
79
|
+
// #list form div div.row div.col-sm-6:nth-child(2) {
|
80
|
+
// display: none;
|
81
|
+
// }
|
80
82
|
|
81
83
|
@import 'rails_admin/custom/thecore/theming';
|