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({
|
$('#Form_ItemEditForm_Embargo input').entwine({
|
||||||
onchange: function() {
|
onchange: function() {
|
||||||
//selected the date options
|
//selected the date options
|
||||||
if (this.attr('value') === '3') {
|
if (this.attr('value') == 3) {
|
||||||
$('.embargoDatetime').show();
|
$('.embargoDatetime').show();
|
||||||
} else {
|
} else {
|
||||||
$('.embargoDatetime').hide();
|
$('.embargoDatetime').hide();
|
||||||
@ -57,7 +57,7 @@
|
|||||||
$('#Form_ItemEditForm_Expiry input').entwine({
|
$('#Form_ItemEditForm_Expiry input').entwine({
|
||||||
onchange: function() {
|
onchange: function() {
|
||||||
//selected the date options
|
//selected the date options
|
||||||
if (this.attr('value') === '1') {
|
if (this.attr('value') == 1) {
|
||||||
$('.expiryDatetime').show();
|
$('.expiryDatetime').show();
|
||||||
} else {
|
} else {
|
||||||
$('.expiryDatetime').hide();
|
$('.expiryDatetime').hide();
|
||||||
@ -84,8 +84,8 @@
|
|||||||
$('li[data-panel="embargo"]').click();
|
$('li[data-panel="embargo"]').click();
|
||||||
|
|
||||||
//set the initial state of the radio button and the associated dropdown hiding
|
//set the initial state of the radio button and the associated dropdown hiding
|
||||||
$('#Form_ItemEditForm_Embargo input').change();
|
$('#Form_ItemEditForm_Embargo input[checked]').change();
|
||||||
$('#Form_ItemEditForm_Expiry input').change();
|
$('#Form_ItemEditForm_Expiry input[checked]').change();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user