public/js/services/request-edit.js
Function requestEdit
has 181 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
return function requestEdit(gettextCatalog) {
/**
* Duration in milliseconds updated on every period changes
* @var {int}
*/
Function onceUserLoaded
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
onceUserLoaded: function onceUserLoaded($scope, user, calendarEvents)
{
/**
* get the onUpdateInterval function
* @param {Object} $scope
Function getOnUpdateInterval
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getOnUpdateInterval($scope, account, calendarEvents) {
/**
* Get notified if interval is modified
* @param {Date} begin
Function onUpdateInterval
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
return function onUpdateInterval(begin, end)
{
duration = 0;
$scope.selection.businessDays = 0;