aboutsummaryrefslogblamecommitdiffstats
path: root/view/js/mod_events.js
blob: d4dc9b585f70c212196b7adc0558b8e6add336f7 (plain) (tree)
1
2
3
4
5



                                                         
                                             































                                                                            
$(document).ready( function() { showHideFinishDate(); });

function showHideFinishDate() {
	if( $('#id_nofinish').is(':checked'))
		$('#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');
		}
		})
				
	}