aboutsummaryrefslogblamecommitdiffstats
path: root/view/js/mod_events.js
blob: 74b811dd6bc9ea6cca1defeaf507937b8d899829 (plain) (tree)
1
2
3
4
5
6
7
8
9
10


                            
 
                               
                                  
                                                                                         


                                    
                                             
                                                            
            
                                                             
 
/**
 * JavaScript for mod/events
 */

$(document).ready( function() {
	enableDisableFinishDate();
	$('#comment-edit-text-desc, #comment-edit-text-loc').bbco_autocomplete('bbcode');
});

function enableDisableFinishDate() {
	if( $('#id_nofinish').is(':checked'))
		$('#id_finish_text').prop("disabled", true);
	else
		$('#id_finish_text').prop("disabled", false);
}