trusty-cms 7.0.5 → 7.0.6
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1200948dac13c1012f25a55e977598239c22b70b3391008962b378c235fa6cb7
|
4
|
+
data.tar.gz: 6bdd05cafa5ff067e6a409bece0b952eed391e767260a0e069fbda25f46f68af
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92bba35d94a6c81c165d6e3aac5d54f3de2f5b51025a0c09d6187ab32aa14703c0bb8e6b9fe5a1f7d1a419fa540ce6d6db4bd06e6c3ef64be09c622b52f34184
|
7
|
+
data.tar.gz: 8b574e8d01b855debfb6b91859f589d79d111bcb9fe3b80eceb77d26a2ac65852cd3ab3693f727aa8a793a1f9a56ac05bb541af40f2cdae769583c07c1ba73e9
|
data/Gemfile.lock
CHANGED
@@ -36,9 +36,8 @@ $(document).ready(function() {
|
|
36
36
|
return true;
|
37
37
|
}
|
38
38
|
|
39
|
-
function validateDateTime() {
|
39
|
+
function validateDateTime(status) {
|
40
40
|
const publishedAt = $('#page_published_at').val();
|
41
|
-
const status = $('#page_status_id').val();
|
42
41
|
const publishedTime = new Date(publishedAt);
|
43
42
|
const currentTime = new Date();
|
44
43
|
|
@@ -49,10 +48,14 @@ $(document).ready(function() {
|
|
49
48
|
if (status === '100') {
|
50
49
|
return validatePublishedStatus(publishedTime, currentTime);
|
51
50
|
}
|
51
|
+
|
52
|
+
return true;
|
52
53
|
}
|
53
54
|
|
54
55
|
$('#save-button, #save-and-continue-button').on('click', function(event) {
|
55
|
-
|
56
|
+
const status = $('#page_status_id').val();
|
57
|
+
|
58
|
+
if (status && !validateDateTime(status)) {
|
56
59
|
event.preventDefault();
|
57
60
|
event.stopImmediatePropagation();
|
58
61
|
}
|
@@ -1,5 +1,3 @@
|
|
1
|
-
= javascript_include_tag 'admin/validations/scheduled_status_validation'
|
2
|
-
|
3
1
|
= fields.hidden_field :lock_version
|
4
2
|
= fields.hidden_field :parent_id
|
5
3
|
= fields.hidden_field :class_name
|
@@ -73,10 +71,6 @@
|
|
73
71
|
#preview_panel.fullcover.grey_out{:style => 'display: none;'}
|
74
72
|
%iframe{:id => 'page-preview', :class => 'fullcover', :name => 'page-preview', :src => ActionController::Base.relative_url_root.to_s + '/loading-iframe.html', :frameborder => 0, :scrolling => 'auto'}
|
75
73
|
.preview_tools
|
76
|
-
=
|
77
|
-
=submit_tag(t('buttons.save_and_continue'), :class => 'big save_and_continue', :name => 'continue')
|
78
|
-
%span.info
|
79
|
-
= t('or')
|
80
|
-
=link_to(t('edit_page'),{}, :class => 'cancel')
|
74
|
+
=link_to(t('edit_page'), {}, :class => 'button cancel')
|
81
75
|
- form_bottom.edit_timestamp do
|
82
76
|
= updated_stamp @page
|
data/lib/trusty_cms/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trusty-cms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.0.
|
4
|
+
version: 7.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- TrustyCms CMS dev team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-01-
|
11
|
+
date: 2025-01-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activestorage-validator
|