Minor - format code

pull/2487/head
jmontoyaa 9 years ago
parent 07b950b05f
commit a523a6c7eb
  1. 8
      main/calendar/agenda.php
  2. 22
      main/gradebook/lib/fe/evalform.class.php

@ -56,8 +56,7 @@ function plus_repeated_event() {
</script>
";
$htmlHeadXtra[] = '<script type="text/javascript">
$htmlHeadXtra[] = '<script>
var counter_image = 1;
function add_image_form() {
// Multiple filepaths for image form
@ -82,7 +81,6 @@ function add_image_form() {
}
</script>';
// setting the name of the tool
$nameTools = get_lang('Agenda');
@ -94,13 +92,13 @@ $agenda = new Agenda();
$agenda->type = $type;
$actions = $agenda->displayActions('calendar');
if ($type == 'fromjs') {
if ($type === 'fromjs') {
$id_list = explode('_', $eventId);
$eventId = $id_list[1];
$event_type = $id_list[0];
}
if (!api_is_allowed_to_edit(null, true) && $event_type == 'course') {
if (!api_is_allowed_to_edit(null, true) && $event_type === 'course') {
api_not_allowed(true);
}
if ($event_type == 'course') {

@ -1,16 +1,6 @@
<?php
/* For licensing terms, see /license.txt */
/*$htmlHeadXtra[] = '<script type="text/javascript">
function setFocus(){
$("#evaluation_title").focus();
}
$(document).ready(function () {
setFocus();
});
</script>';*/
/**
* Class EvalForm
*
@ -41,8 +31,16 @@ class EvalForm extends FormValidator
* @param method
* @param action
*/
public function __construct($form_type, $evaluation_object, $result_object, $form_name, $method = 'post', $action = null, $extra1 = null, $extra2 = null)
{
public function __construct(
$form_type,
$evaluation_object,
$result_object,
$form_name,
$method = 'post',
$action = null,
$extra1 = null,
$extra2 = null
) {
parent::__construct($form_name, $method, $action);
if (isset($evaluation_object)) {

Loading…
Cancel
Save