Skip to content

Commit

Permalink
Remove unused code (Reservation) see #7123
Browse files Browse the repository at this point in the history
  • Loading branch information
jmontoyaa committed Mar 2, 2015
1 parent 1bcb584 commit 59d5183
Show file tree
Hide file tree
Showing 11 changed files with 0 additions and 4,135 deletions.
29 changes: 0 additions & 29 deletions main/inc/lib/formvalidator/FormValidator.class.php
Expand Up @@ -347,35 +347,6 @@ public function addHtmlEditor($name, $label, $required = true, $fullPage = false
}
}

/**
* Adds a datepicker element to the form
* A rule is added to check if the date is a valid one
* @param string $label The label for the form-element
* @param string $name The element name
* @deprecated
*/
public function add_datepicker($name, $label)
{
$this->addElement('DatePicker', $name, $label, array('form_name' => $this->getAttribute('name')));
$this->_elements[$this->_elementIndex[$name]]->setLocalOption('minYear', 1900); // TODO: Now - 9 years
$this->addRule($name, get_lang('InvalidDate'), 'date');
}

/**
* Adds a timewindow element to the form.
* 2 datepicker elements are added and a rule to check if the first date is
* before the second one.
* @param string $label The label for the form-element
* @param string $name The element name
* @deprecated
*/
public function add_timewindow($name_1, $name_2, $label_1, $label_2)
{
$this->add_datepicker($name_1, $label_1);
$this->add_datepicker($name_2, $label_2);
$this->addRule(array($name_1, $name_2), get_lang('StartDateShouldBeBeforeEndDate'), 'date_compare', 'lte');
}

/**
* Adds a progress bar to the form.
*
Expand Down
7 changes: 0 additions & 7 deletions main/reservation/index.html

This file was deleted.

119 changes: 0 additions & 119 deletions main/reservation/m_category.php

This file was deleted.

0 comments on commit 59d5183

Please sign in to comment.