// JavaScript Document
/* *********************************************************************
 * Quick Edit
 * *********************************************************************/
function InitQuickEdit () {
	 
	 
        $('.quick_edit').click(function () {
                $(this).parent().parent().find('td.edit-field').click();
                return false;
        });
        
        $('.edit-textfield').editable('http://www.google.com/', {
                'type': 'text'
        });

        $('.edit-date').editable('date.php', {
             'type' : 'datepicker'
        });
       
        $('.edit-textarea').editable('http://www.google.com/', {
                'type': 'textarea'
        });
		
        $('.edit-select').editable('/status.php?action=betaling', {
                data: "{'1': 'Betaald', '0': 'Niet betaald'}",
                type: 'select',
				cancel    : 'Cancel',
				submit    : 'OK',
				indicator : '<img src="/templates/enterprise/images/indicator.gif">',
				tooltip   : 'Click to edit...'
        });   
		
        $('.edit-status').editable('/status.php?action=status', {
                data: "{'1': 'contract nog niet ontvangen', '2': 'contract ontvangen', '3': 'in behandeling', '4': 'compleet'}",
                type: 'select',
				cancel    : 'Cancel',
				submit    : 'OK',
				indicator : '<img src="/templates/enterprise/images/indicator.gif">',
				tooltip   : 'Click to edit...'
        });   
		
		$('.edit-periode').editable('/status.php?action=periode', {
                data: "{'365': '365 dagen', '30': '30 dagen', '0': 'eenmalig'}",
                type: 'select',
				cancel    : 'Cancel',
				submit    : 'OK',
				indicator : '<img src="/templates/enterprise/images/indicator.gif">',
				tooltip   : 'Click to edit...'
        });
		
		 
	 
       
}

