diff --git a/public/js/lib/dataservices/employeehoursDataService.js b/public/js/lib/dataservices/employeehoursDataService.js index 3bc7689..f8e19db 100644 --- a/public/js/lib/dataservices/employeehoursDataService.js +++ b/public/js/lib/dataservices/employeehoursDataService.js @@ -8,35 +8,35 @@ dbo.employeehoursDataService = { getEmployeehours: function ( $month, $year, callback ) { - $.getJSON( 'index.php/projects/employeehoursController/getEmployeehours/' + $month + '/' + $year ) - .done( function ( data ) { + $.getJSON( 'index.php/projects/employeeHoursController/getEmployeehours/' + $month + '/' + $year ) + .done( function ( data ) H callback( data ); } ); }, getMonthlyEmployeehours : function(month, $year, callback){ - $.getJSON( 'index.php/reports/employeehoursController/getMonthlyEmployeehours/' + month + '/' + $year ) + $.getJSON( 'index.php/reports/employeeHoursController/getMonthlyEmployeehours/' + month + '/' + $year ) .done( function ( data ) { callback( data ); } ); }, getHourtypes: function ( callback ) { - $.getJSON( 'index.php/projects/employeehoursController/getHourtypes' ) + $.getJSON( 'index.php/projects/employeeHoursController/getHourtypes' ) .done( function ( data ) { callback( data ); } ); }, saveEmployeehour: function ( submitDATA, callback ) { - $.post( 'index.php/projects/employeehoursController/saveEmployeehour', submitDATA, 'json' ) + $.post( 'index.php/projects/employeeHoursController/saveEmployeehour', submitDATA, 'json' ) .done( function ( data ) { callback( data ); } ); }, removeEmployeehour: function ( employeehourID, callback ) { - $.getJSON( 'index.php/projects/employeehoursController/removeEmployeehour/' + employeehourID ) + $.getJSON( 'index.php/projects/employeeHoursController/removeEmployeehour/' + employeehourID ) .done( function ( data ) { callback( data ); } )