mirror of
https://github.com/silverstripe/silverstripe-dms
synced 2024-10-22 14:05:56 +02:00
BUGFIX: fixing initial loading hiding/showing of the Date picker
This commit is contained in:
parent
6280bed9ab
commit
8aff01a608
@ -46,7 +46,7 @@
|
||||
$('#Form_ItemEditForm_Embargo input').entwine({
|
||||
onchange: function() {
|
||||
//selected the date options
|
||||
if (this.attr('value') === '3') {
|
||||
if (this.attr('value') == 3) {
|
||||
$('.embargoDatetime').show();
|
||||
} else {
|
||||
$('.embargoDatetime').hide();
|
||||
@ -57,7 +57,7 @@
|
||||
$('#Form_ItemEditForm_Expiry input').entwine({
|
||||
onchange: function() {
|
||||
//selected the date options
|
||||
if (this.attr('value') === '1') {
|
||||
if (this.attr('value') == 1) {
|
||||
$('.expiryDatetime').show();
|
||||
} else {
|
||||
$('.expiryDatetime').hide();
|
||||
@ -84,8 +84,8 @@
|
||||
$('li[data-panel="embargo"]').click();
|
||||
|
||||
//set the initial state of the radio button and the associated dropdown hiding
|
||||
$('#Form_ItemEditForm_Embargo input').change();
|
||||
$('#Form_ItemEditForm_Expiry input').change();
|
||||
$('#Form_ItemEditForm_Embargo input[checked]').change();
|
||||
$('#Form_ItemEditForm_Expiry input[checked]').change();
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user