streams/view/js/mod_events.js

38 lines
873 B
JavaScript
Raw Normal View History

2014-09-06 07:37:15 +00:00
$(document).ready( function() { showHideFinishDate(); });
function showHideFinishDate() {
2015-02-06 05:01:02 +00:00
if( $('#id_nofinish').is(':checked'))
2014-09-06 07:37:15 +00:00
$('#event-finish-wrapper').hide();
else
$('#event-finish-wrapper').show();
}
function eventGetStart() {
//reply = prompt("{{$expirewhen}}", $('#jot-expire').val());
$('#startModal').modal();
$('#start-modal-OKButton').on('click', function() {
reply=$('#start-date').val();
if(reply && reply.length) {
$('#start-text').val(reply);
$('#startModal').modal('hide');
}
})
}
function eventGetFinish() {
//reply = prompt("{{$expirewhen}}", $('#jot-expire').val());
$('#finishModal').modal();
$('#finish-modal-OKButton').on('click', function() {
reply=$('#finish-date').val();
if(reply && reply.length) {
$('#finish-text').val(reply);
$('#finishModal').modal('hide');
}
})
}