// Validity date
if (isEmpty(date))
{
- document.getElementById('validity').style.display = 'none';
+ document.getElementById('date').style.display = 'none';
}
else {
document.getElementById('date').innerHTML = '<span class="datetime" title="'
+ dateToUtcString(date) + ' (GMT)">'
+ date.format('YYYY-MM-DD hh:mm (GMT O)')
+ '</span>';
- document.getElementById('validity').style.display = '';
+ document.getElementById('date').style.display = '';
}
// Preview link (if allowed)
}
else
{
- document.getElementById('options').style.display = '';
- document.getElementById('send').style.display = '';
+ // add class to restyle upload form in next step
+ document.getElementById('upload').setAttribute('class', 'file-selected');
+ // display options
+ document.getElementById('options').style.display = 'block';
+ document.getElementById('send').style.display = 'block';
document.getElementById('error_pop').style.display = 'none';
- document.getElementById('file_select').style.left = 'inherit';
- document.getElementById('file_select').style.height = 'inherit';
- document.getElementById('file_select').style.opacity = '1';
+ document.getElementById('send').focus();
}
}