Skip to content

Commit

Permalink
removing the double inclusion of the calendar processing
Browse files Browse the repository at this point in the history
  • Loading branch information
caseysoftware committed Oct 11, 2014
1 parent c715b09 commit 805ec10
Show file tree
Hide file tree
Showing 22 changed files with 1 addition and 25 deletions.
1 change: 0 additions & 1 deletion modules/events/addedit.php
Expand Up @@ -17,7 +17,6 @@
} }


global $AppUI, $cal_sdf; global $AppUI, $cal_sdf;
$AppUI->getTheme()->loadCalendarJS();


// get the passed timestamp (today if none) // get the passed timestamp (today if none)
$date = w2PgetParam($_GET, 'date', null); $date = w2PgetParam($_GET, 'date', null);
Expand Down
2 changes: 0 additions & 2 deletions modules/projectdesigner/index.php
Expand Up @@ -35,8 +35,6 @@
$AppUI->redirect(ACCESS_DENIED); $AppUI->redirect(ACCESS_DENIED);
} }


$AppUI->getTheme()->loadCalendarJS();

$today = new w2p_Utilities_Date(); $today = new w2p_Utilities_Date();
$today->addDays(1); $today->addDays(1);
$today->setHour($w2Pconfig['cal_day_start']); $today->setHour($w2Pconfig['cal_day_start']);
Expand Down
1 change: 0 additions & 1 deletion modules/projects/addedit.php
Expand Up @@ -32,7 +32,6 @@
} }


global $AppUI, $cal_sdf; global $AppUI, $cal_sdf;
$AppUI->getTheme()->loadCalendarJS();


$pstatus = w2PgetSysVal('ProjectStatus'); $pstatus = w2PgetSysVal('ProjectStatus');
$ptype = w2PgetSysVal('ProjectType'); $ptype = w2PgetSysVal('ProjectType');
Expand Down
1 change: 0 additions & 1 deletion modules/projects/viewgantt.php
Expand Up @@ -5,7 +5,6 @@
// @todo convert to template // @todo convert to template


global $AppUI, $company_id, $dept_ids, $department, $min_view, $m, $a, $user_id, $tab, $cal_sdf; global $AppUI, $company_id, $dept_ids, $department, $min_view, $m, $a, $user_id, $tab, $cal_sdf;
$AppUI->getTheme()->loadCalendarJS();


$min_view = defVal($min_view, false); $min_view = defVal($min_view, false);
$project_id = w2PgetParam($_GET, 'project_id', 0); $project_id = w2PgetParam($_GET, 'project_id', 0);
Expand Down
1 change: 0 additions & 1 deletion modules/reports/reports/allocateduserhours.php
Expand Up @@ -5,7 +5,6 @@
// @todo convert to template // @todo convert to template


global $AppUI, $cal_sdf; global $AppUI, $cal_sdf;
$AppUI->getTheme()->loadCalendarJS();


$coarseness = w2PgetParam($_POST, 'coarseness', 1); $coarseness = w2PgetParam($_POST, 'coarseness', 1);
$do_report = w2PgetParam($_POST, 'do_report', 0); $do_report = w2PgetParam($_POST, 'do_report', 0);
Expand Down
1 change: 0 additions & 1 deletion modules/reports/reports/budgetcategorybyprojectcost.php
Expand Up @@ -5,7 +5,6 @@
// @todo convert to template // @todo convert to template


global $AppUI, $cal_sdf; global $AppUI, $cal_sdf;
$AppUI->getTheme()->loadCalendarJS();


$company_id = (int) w2PgetParam($_POST, 'company_id', 0); $company_id = (int) w2PgetParam($_POST, 'company_id', 0);
$active_projects = w2PgetParam($_POST, 'active_projects', 0); $active_projects = w2PgetParam($_POST, 'active_projects', 0);
Expand Down
1 change: 0 additions & 1 deletion modules/reports/reports/costsbyproject.php
Expand Up @@ -5,7 +5,6 @@
// @todo convert to template // @todo convert to template


global $AppUI, $cal_sdf; global $AppUI, $cal_sdf;
$AppUI->getTheme()->loadCalendarJS();


$company_id = (int) w2PgetParam($_POST, 'company_id', 0); $company_id = (int) w2PgetParam($_POST, 'company_id', 0);
$active_projects = w2PgetParam($_POST, 'active_projects', 0); $active_projects = w2PgetParam($_POST, 'active_projects', 0);
Expand Down
3 changes: 1 addition & 2 deletions modules/reports/reports/costsbytask.php
Expand Up @@ -5,8 +5,7 @@
// @todo convert to template // @todo convert to template


global $AppUI, $cal_sdf; global $AppUI, $cal_sdf;
$AppUI->getTheme()->loadCalendarJS();
//TODO: block execution unless I tell it to
/** /**
* Generates a report of the task logs for given dates * Generates a report of the task logs for given dates
*/ */
Expand Down
1 change: 0 additions & 1 deletion modules/reports/reports/overall.php
Expand Up @@ -5,7 +5,6 @@
// @todo convert to template // @todo convert to template


global $AppUI, $cal_sdf; global $AppUI, $cal_sdf;
$AppUI->getTheme()->loadCalendarJS();


/** /**
* Generates a report of the task logs for given dates * Generates a report of the task logs for given dates
Expand Down
1 change: 0 additions & 1 deletion modules/reports/reports/taskenddate.php
Expand Up @@ -5,7 +5,6 @@
// @todo convert to template // @todo convert to template


global $AppUI, $cal_sdf; global $AppUI, $cal_sdf;
$AppUI->getTheme()->loadCalendarJS();


$do_report = w2PgetParam($_POST, 'do_report', 0); $do_report = w2PgetParam($_POST, 'do_report', 0);
$log_start_date = w2PgetParam($_POST, 'log_start_date', 0); $log_start_date = w2PgetParam($_POST, 'log_start_date', 0);
Expand Down
1 change: 0 additions & 1 deletion modules/reports/reports/tasklist.php
Expand Up @@ -5,7 +5,6 @@
// @todo convert to template // @todo convert to template


global $AppUI, $cal_sdf; global $AppUI, $cal_sdf;
$AppUI->getTheme()->loadCalendarJS();


/** /**
* Generates a report of the task logs for given dates * Generates a report of the task logs for given dates
Expand Down
1 change: 0 additions & 1 deletion modules/reports/reports/tasklogs.php
Expand Up @@ -8,7 +8,6 @@
* Generates a report of the task logs for given dates * Generates a report of the task logs for given dates
*/ */
global $AppUI, $cal_sdf; global $AppUI, $cal_sdf;
$AppUI->getTheme()->loadCalendarJS();


$perms = &$AppUI->acl(); $perms = &$AppUI->acl();
if (!canView('task_log')) { if (!canView('task_log')) {
Expand Down
1 change: 0 additions & 1 deletion modules/reports/reports/tasklogs_xp1.php
Expand Up @@ -8,7 +8,6 @@
* Generates a report of the task logs for given dates * Generates a report of the task logs for given dates
*/ */
global $AppUI, $cal_sdf; global $AppUI, $cal_sdf;
$AppUI->getTheme()->loadCalendarJS();


$perms = &$AppUI->acl(); $perms = &$AppUI->acl();
if (!canView('task_log')) { if (!canView('task_log')) {
Expand Down
1 change: 0 additions & 1 deletion modules/reports/reports/tasksperuser.php
Expand Up @@ -5,7 +5,6 @@
// @todo convert to template // @todo convert to template


global $AppUI, $cal_sdf; global $AppUI, $cal_sdf;
$AppUI->getTheme()->loadCalendarJS();


$do_report = w2PgetParam($_POST, 'do_report', 0); $do_report = w2PgetParam($_POST, 'do_report', 0);
$log_start_date = w2PgetParam($_POST, 'log_start_date', 0); $log_start_date = w2PgetParam($_POST, 'log_start_date', 0);
Expand Down
1 change: 0 additions & 1 deletion modules/reports/reports/userperformance.php
Expand Up @@ -5,7 +5,6 @@
// @todo convert to template // @todo convert to template


global $AppUI, $cal_sdf; global $AppUI, $cal_sdf;
$AppUI->getTheme()->loadCalendarJS();


$do_report = w2PgetParam($_POST, 'do_report', 0); $do_report = w2PgetParam($_POST, 'do_report', 0);
$log_start_date = w2PgetParam($_POST, 'log_start_date', 0); $log_start_date = w2PgetParam($_POST, 'log_start_date', 0);
Expand Down
1 change: 0 additions & 1 deletion modules/system/budgeting.php
Expand Up @@ -3,7 +3,6 @@
die('You should not access this file directly.'); die('You should not access this file directly.');
} }
global $AppUI, $cal_sdf; global $AppUI, $cal_sdf;
$AppUI->getTheme()->loadCalendarJS();


$budget_id = (int) w2PgetParam($_GET, 'budget_id', 0); $budget_id = (int) w2PgetParam($_GET, 'budget_id', 0);


Expand Down
1 change: 0 additions & 1 deletion modules/system/budgeting_allocated.php
Expand Up @@ -3,7 +3,6 @@
die('You should not access this file directly.'); die('You should not access this file directly.');
} }
global $AppUI, $cal_sdf; global $AppUI, $cal_sdf;
$AppUI->getTheme()->loadCalendarJS();


$budget_id = (int) w2PgetParam($_GET, 'budget_id', 0); $budget_id = (int) w2PgetParam($_GET, 'budget_id', 0);


Expand Down
1 change: 0 additions & 1 deletion modules/tasks/ae_dates.php
Expand Up @@ -8,7 +8,6 @@
global $can_edit_time_information, $locale_char_set, $object; global $can_edit_time_information, $locale_char_set, $object;
global $durnTypes, $task_project, $object_id, $tab; global $durnTypes, $task_project, $object_id, $tab;
global $cal_sdf; global $cal_sdf;
$AppUI->getTheme()->loadCalendarJS();


//Time arrays for selects //Time arrays for selects
$start = (int) w2PgetConfig('cal_day_start', 8); $start = (int) w2PgetConfig('cal_day_start', 8);
Expand Down
1 change: 0 additions & 1 deletion modules/tasks/tasksperuser_sub.php
Expand Up @@ -6,7 +6,6 @@
// @todo remove database query // @todo remove database query


global $AppUI, $cal_sdf; global $AppUI, $cal_sdf;
$AppUI->getTheme()->loadCalendarJS();


$do_report = w2PgetParam($_POST, 'do_report', true); $do_report = w2PgetParam($_POST, 'do_report', true);
$log_start_date = w2PgetParam($_POST, 'log_start_date', 0); $log_start_date = w2PgetParam($_POST, 'log_start_date', 0);
Expand Down
1 change: 0 additions & 1 deletion modules/tasks/viewgantt.php
Expand Up @@ -6,7 +6,6 @@


global $AppUI, $min_view, $m, $a, $user_id, $tab, $tasks, $cal_sdf; global $AppUI, $min_view, $m, $a, $user_id, $tab, $tasks, $cal_sdf;
global $gantt_map, $currentGanttImgSource, $filter_task_list, $caller; global $gantt_map, $currentGanttImgSource, $filter_task_list, $caller;
$AppUI->getTheme()->loadCalendarJS();


$min_view = defVal($min_view, false); $min_view = defVal($min_view, false);


Expand Down
2 changes: 0 additions & 2 deletions modules/tasks/vw_log_update.php
Expand Up @@ -26,8 +26,6 @@
$AppUI->redirect(ACCESS_DENIED); $AppUI->redirect(ACCESS_DENIED);
} }


$AppUI->getTheme()->loadCalendarJS();

// check permissions // check permissions
$perms = &$AppUI->acl(); $perms = &$AppUI->acl();
$canEditTask = $perms->checkModuleItem('tasks', 'edit', $obj->task_id); $canEditTask = $perms->checkModuleItem('tasks', 'edit', $obj->task_id);
Expand Down
1 change: 0 additions & 1 deletion modules/users/vw_usr_log.php
Expand Up @@ -15,7 +15,6 @@
$a = ($user_id) ? '&a=view&user_id=' . $user_id : ''; $a = ($user_id) ? '&a=view&user_id=' . $user_id : '';
$a .= '&tab=' . $currentTabId . '&showdetails=1'; $a .= '&tab=' . $currentTabId . '&showdetails=1';


$AppUI->getTheme()->loadCalendarJS();
?> ?>
<script language="javascript" type="text/javascript"> <script language="javascript" type="text/javascript">
function checkDate() function checkDate()
Expand Down

0 comments on commit 805ec10

Please sign in to comment.