Merge branch '1.11.x' of github.com:chamilo/chamilo-lms into 1.11.x

remotes/angel/1.11.x
Yannick Warnier 8 years ago
commit 93bab070da
  1. 1
      .codeclimate.yml
  2. 1
      .scrutinizer.yml
  3. 215
      main/inc/lib/internationalization.lib.php
  4. 11
      main/install/configuration.dist.php
  5. 1
      main/template/default/agenda/month.tpl
  6. 2624
      main/wiki/wiki.inc.php

@ -66,6 +66,7 @@ exclude_paths:
- plugin/pens/lib
- plugin/bbb/lib/bbb_api.php
- plugin/ims_lti/OAuthSimple.php
- plugin/sepe/src/wsse/
- tests/
- vendor/
- web/

@ -169,6 +169,7 @@ filter:
- 'plugin/pens/lib/'
- 'plugin/bbb/lib/bbb_api.php'
- 'plugin/ims_lti/OAuthSimple.php'
- 'plugin/sepe/src/wsse/*'
- 'tests/*'
- 'vendor/*'
- 'web/*'

@ -78,14 +78,15 @@ define('PERSON_NAME_DATA_EXPORT', PERSON_NAME_EASTERN_ORDER);
* 3. Translations are created many contributors through using a special tool: Chamilo Translation Application.
* @link http://translate.chamilo.org/
*/
function get_lang($variable, $reserved = null, $language = null) {
global
function get_lang($variable, $reserved = null, $language = null)
{
// For serving some old hacks:
// By manipulating this global variable the translation may be done in different languages too (not the elegant way).
$language_interface,
// Because of possibility for manipulations of the global variable $language_interface, we need its initial value.
$language_interface_initial_value;
// By manipulating this global variable the translation may
// be done in different languages too (not the elegant way).
global $language_interface;
// Because of possibility for manipulations of the global
// variable $language_interface, we need its initial value.
global $language_interface_initial_value;
global $used_lang_vars, $_configuration;
// add language_measure_frequency to your main/inc/conf/configuration.php in order to generate language
// variables frequency measurements (you can then see them trhough main/cron/lang/langstats.php)
@ -213,7 +214,7 @@ function api_get_interface_language(
/**
* Returns a purified language id, without possible suffixes that will disturb language identification in certain cases.
* @param string $language The input language identificator, for example 'french_unicode'.
* @param string The same purified or filtered language identificator, for example 'french'.
* @param string The same purified or filtered language id, for example 'french'.
* @return string
*/
function api_purify_language_id($language)
@ -377,7 +378,10 @@ function api_get_timezone()
if ($use_users_timezone === 'true') {
$userId = api_get_user_id();
// Get the timezone based on user preference, if it exists
$timezone_user = UserManager::get_extra_user_data_by_field($userId, 'timezone');
$timezone_user = UserManager::get_extra_user_data_by_field(
$userId,
'timezone'
);
if (isset($timezone_user['timezone']) && $timezone_user['timezone'] != null) {
$to_timezone = $timezone_user['timezone'];
}
@ -400,8 +404,11 @@ function api_get_timezone()
* @author Julio Montoya - Adding the 2nd parameter
* @author Guillaume Viguier <guillaume.viguier@beeznest.com>
*/
function api_get_utc_datetime($time = null, $return_null_if_invalid_date = false, $returnObj = false)
{
function api_get_utc_datetime(
$time = null,
$return_null_if_invalid_date = false,
$returnObj = false
) {
$from_timezone = api_get_timezone();
$to_timezone = 'UTC';
if (is_null($time) || empty($time) || $time === '0000-00-00 00:00:00') {
@ -524,8 +531,13 @@ function api_strtotime($time, $timezone = null)
* @author Guillaume Viguier <guillaume.viguier@beeznest.com>
*
* @param mixed Timestamp or datetime string
* @param mixed Date format (string or int; see date formats in the Chamilo system: TIME_NO_SEC_FORMAT, DATE_FORMAT_SHORT, DATE_FORMAT_LONG, DATE_TIME_FORMAT_LONG)
* @param string $language (optional) Language identificator. If it is omited, the current interface language is assumed.
* @param string|int Date format (see date formats in the Chamilo system:
* TIME_NO_SEC_FORMAT,
* DATE_FORMAT_SHORT,
* DATE_FORMAT_LONG,
* DATE_TIME_FORMAT_LONG
* @param string $language (optional) Language id
* If it is omitted, the current interface language is assumed.
* @return string Returns the formatted date.
*
* @link http://php.net/manual/en/function.strftime.php
@ -686,7 +698,6 @@ function date_to_str_ago($date, $timeZone = 'UTC')
}
$getOldTimezone = api_get_timezone();
$isoCode = api_get_language_isocode();
if ($isoCode == 'pt') {
$isoCode = 'pt-BR';
@ -735,7 +746,8 @@ function api_get_week_days_short($language = null)
/**
* Returns an array of translated week days.
* @param string $language (optional) Language id. If it is omitted, the current interface language is assumed.
* @param string $language (optional) Language id. If it is omitted,
* the current interface language is assumed.
* @return string Returns an array of week days.
* Example: api_get_week_days_long('english') means array('Sunday, 'Monday', ... 'Saturday').
* Note: For all languges returned days are in the English order.
@ -748,7 +760,8 @@ function api_get_week_days_long($language = null)
/**
* Returns an array of translated months in short names.
* @param string $language (optional) Language id. If it is omitted, the current interface language is assumed.
* @param string $language (optional) Language id.
* If it is omitted, the current interface language is assumed.
* @return string Returns an array of months (short names).
* Example: api_get_months_short('english') means array('Jan', 'Feb', ... 'Dec').
*/
@ -760,7 +773,8 @@ function api_get_months_short($language = null)
/**
* Returns an array of translated months.
* @param string $language (optional) Language id. If it is omitted, the current interface language is assumed.
* @param string $language (optional) Language id.
* If it is omitted, the current interface language is assumed.
* @return string Returns an array of months.
* Example: api_get_months_long('english') means array('January, 'February' ... 'December').
*/
@ -779,15 +793,25 @@ function api_get_months_long($language = null)
* @param string $first_name The first name of the person.
* @param string $last_name The last name of the person.
* @param string $title The title of the person.
* @param int|string $format (optional) The person name format. It may be a pattern-string (for example '%t %l, %f' or '%T %F %L', ...) or some of the constants PERSON_NAME_COMMON_CONVENTION (default), PERSON_NAME_WESTERN_ORDER, PERSON_NAME_EASTERN_ORDER, PERSON_NAME_LIBRARY_ORDER.
* @param string $language (optional) The language id. If it is omitted, the current interface language is assumed. This parameter has meaning with the format PERSON_NAME_COMMON_CONVENTION only.
* @param string $encoding (optional) The used internally by this function character encoding. If it is omitted, the platform character set will be used by default.
* @param int|string $format (optional) The person name format.
* It may be a pattern-string (for example '%t %l, %f' or '%T %F %L', ...) or
* some of the constants
* PERSON_NAME_COMMON_CONVENTION (default),
* PERSON_NAME_WESTERN_ORDER,
* PERSON_NAME_EASTERN_ORDER,
* PERSON_NAME_LIBRARY_ORDER.
* @param string $language (optional)
* The language id. If it is omitted, the current interface language is assumed.
* This parameter has meaning with the format PERSON_NAME_COMMON_CONVENTION only.
* @param string $encoding (optional) The used internally by this function
* character encoding. If it is omitted, the platform character set will be used by default.
* @return bool The result is sort of full name of the person.
* Sample results:
* Peter Ustinoff or Dr. Peter Ustinoff - the Western order
* Ustinoff Peter or Dr. Ustinoff Peter - the Eastern order
* Ustinoff, Peter or - Dr. Ustinoff, Peter - the library order
* Note: See the file chamilo/main/inc/lib/internationalization_database/name_order_conventions.php where you can revise the convention for your language.
* Note: See the file main/inc/lib/internationalization_database/name_order_conventions.php
* where you can check the convention for your language.
* @author Carlos Vargas <carlos.vargas@dokeos.com> - initial implementation.
* @author Ivan Tcholakov
*/
@ -804,7 +828,8 @@ function api_get_person_name(
if (empty($format)) {
$format = PERSON_NAME_COMMON_CONVENTION;
}
//We check if the language is supported, otherwise we check the interface language of the parent language of sublanguage
// We check if the language is supported, otherwise we check the
// interface language of the parent language of sublanguage
if (empty($language)) {
// Do not set $setParentLanguageName because this function is called before
// the main language is loaded in global.inc.php
@ -877,10 +902,19 @@ function api_get_person_name(
/**
* Checks whether a given format represents person name in Western order (for which first name is first).
* @param int|string $format (optional) The person name format. It may be a pattern-string (for example '%t. %l, %f') or some of the constants PERSON_NAME_COMMON_CONVENTION (default), PERSON_NAME_WESTERN_ORDER, PERSON_NAME_EASTERN_ORDER, PERSON_NAME_LIBRARY_ORDER.
* @param string $language (optional) The language id. If it is omitted, the current interface language is assumed. This parameter has meaning with the format PERSON_NAME_COMMON_CONVENTION only.
* @return bool The result TRUE means that the order is first_name last_name, FALSE means last_name first_name.
* Note: You may use this function for determining the order of the fields or columns "First name" and "Last name" in forms, tables and reports.
* @param int|string $format (optional) The person name format.
* It may be a pattern-string (for example '%t. %l, %f') or some of the constants
* PERSON_NAME_COMMON_CONVENTION (default),
* PERSON_NAME_WESTERN_ORDER,
* PERSON_NAME_EASTERN_ORDER,
* PERSON_NAME_LIBRARY_ORDER.
* @param string $language (optional) The language id. If it is omitted,
* the current interface language is assumed. This parameter has meaning with the
* format PERSON_NAME_COMMON_CONVENTION only.
* @return bool The result TRUE means that the order is first_name last_name,
* FALSE means last_name first_name.
* Note: You may use this function for determining the order of the fields or
* columns "First name" and "Last name" in forms, tables and reports.
* @author Ivan Tcholakov
*/
function api_is_western_name_order($format = null, $language = null)
@ -901,15 +935,19 @@ function api_is_western_name_order($format = null, $language = null)
}
/**
* Returns a directive for sorting person names depending on a given language and based on the options in the internationalization "database".
* @param string $language (optional) The input language. If it is omitted, the current interface language is assumed.
* @return bool Returns boolean value. TRUE means ORDER BY first_name, last_name; FALSE means ORDER BY last_name, first_name.
* Returns a directive for sorting person names depending on a given language
* and based on the options in the internationalization "database".
* @param string $language (optional) The input language.
* If it is omitted, the current interface language is assumed.
* @return bool Returns boolean value. TRUE means ORDER BY first_name, last_name
* FALSE means ORDER BY last_name, first_name.
* Note: You may use this function:
* 2. for constructing the ORDER clause of SQL queries, related to first_name and last_name;
* 3. for adjusting php-implemented sorting in tables and reports.
* @author Ivan Tcholakov
*/
function api_sort_by_first_name($language = null) {
function api_sort_by_first_name($language = null)
{
$userNameSortBy = api_get_setting('user_name_sort_by');
if (!empty($userNameSortBy) && in_array($userNameSortBy, array('firstname', 'lastname'))) {
return $userNameSortBy == 'firstname' ? true : false;
@ -1031,7 +1069,8 @@ function api_htmlentities($string, $quote_style = ENT_COMPAT, $encoding = 'UTF-8
* This function is aimed at replacing the function html_entity_decode() for human-language strings.
* @link http://php.net/html_entity_decode
*/
function api_html_entity_decode($string, $quote_style = ENT_COMPAT, $encoding = 'UTF-8') {
function api_html_entity_decode($string, $quote_style = ENT_COMPAT, $encoding = 'UTF-8')
{
if (empty($encoding)) {
$encoding = _api_mb_internal_encoding();
}
@ -1094,7 +1133,8 @@ function api_transliterate($string, $unknown = '?', $from_encoding = null)
/**
* Takes the first character in a string and returns its Unicode codepoint.
* @param string $character The input string.
* @param string $encoding (optional) The encoding of the input string. If it is omitted, the platform character set will be used by default.
* @param string $encoding (optional) The encoding of the input string.
* If it is omitted, the platform character set will be used by default.
* @return int Returns: the codepoint of the first character; or 0xFFFD (unknown character) when the input string is empty.
* This is a multibyte aware version of the function ord().
* @link http://php.net/manual/en/function.ord.php
@ -1106,17 +1146,21 @@ function api_ord($character, $encoding = 'UTF-8')
}
/**
* This function returns a string or an array with all occurrences of search in subject (ignoring case) replaced with the given replace value.
* This function returns a string or an array with all occurrences of search
* in subject (ignoring case) replaced with the given replace value.
* @param mixed $search String or array of strings to be found.
* @param mixed $replace String or array of strings used for replacement.
* @param mixed $subject String or array of strings being searched.
* @param int $count (optional) The number of matched and replaced needles will be returned in count, which is passed by reference.
* @param int $count (optional) The number of matched and replaced needles
* will be returned in count, which is passed by reference.
* @param string $encoding (optional) The used internally by this function character encoding.
* If it is omitted, the platform character set will be used by default.
* @return mixed String or array as a result.
* Notes:
* If $subject is an array, then the search and replace is performed with every entry of subject, the return value is an array.
* If $search and $replace are arrays, then the function takes a value from each array and uses it to do search and replace on subject.
* If $subject is an array, then the search and replace is performed with
* every entry of subject, the return value is an array.
* If $search and $replace are arrays, then the function takes a value from
* each array and uses it to do search and replace on subject.
* If $replace has fewer values than search, then an empty string is used for the rest of replacement values.
* If $search is an array and $replace is a string, then this replacement string is used for every value of search.
* This function is aimed at replacing the function str_ireplace() for human-language strings.
@ -1136,7 +1180,8 @@ function api_str_ireplace($search, $replace, $subject, & $count = null, $encodin
* Converts a string to an array.
* @param string $string The input string.
* @param int $split_length Maximum character-length of the chunk, one character by default.
* @param string $encoding (optional) The used internally by this function character encoding. If it is omitted, the platform character set will be used by default.
* @param string $encoding (optional) The used internally by this function
* character encoding. If it is omitted, the platform character set will be used by default.
* @return array The result array of chunks with the spcified length.
* Notes:
* If the optional split_length parameter is specified, the returned array will be broken down into chunks
@ -1155,9 +1200,12 @@ function api_str_split($string, $split_length = 1, $encoding = null)
* Finds position of first occurrence of a string within another, case insensitive.
* @param string $haystack The string from which to get the position of the first occurrence.
* @param string $needle The string to be found.
* @param int $offset The position in $haystack to start searching from. If it is omitted, searching starts from the beginning.
* @param string $encoding (optional) The used internally by this function character encoding. If it is omitted, the platform character set will be used by default.
* @return mixed Returns the numeric position of the first occurrence of $needle in the $haystack, or FALSE if $needle is not found.
* @param int $offset The position in $haystack to start searching from.
* If it is omitted, searching starts from the beginning.
* @param string $encoding (optional) The used internally by this function
* character encoding. If it is omitted, the platform character set will be used by default.
* @return mixed Returns the numeric position of the first occurrence of
* $needle in the $haystack, or FALSE if $needle is not found.
* Note: The first character's position is 0, the second character position is 1, and so on.
* This function is aimed at replacing the functions stripos() and mb_stripos() for human-language strings.
* @link http://php.net/manual/en/function.stripos
@ -1172,13 +1220,18 @@ function api_stripos($haystack, $needle, $offset = 0, $encoding = null)
* Finds first occurrence of a string within another, case insensitive.
* @param string $haystack The string from which to get the first occurrence.
* @param mixed $needle The string to be found.
* @param bool $before_needle (optional) Determines which portion of $haystack this function returns. The default value is FALSE.
* @param string $encoding (optional) The used internally by this function character encoding. If it is omitted, the platform character set will be used by default.
* @param bool $before_needle (optional) Determines which portion of $haystack
* this function returns. The default value is FALSE.
* @param string $encoding (optional) The used internally by this function
* character encoding. If it is omitted, the platform character set will be used by default.
* @return mixed Returns the portion of $haystack, or FALSE if $needle is not found.
* Notes:
* If $needle is not a string, it is converted to an integer and applied as the ordinal value (codepoint if the encoding is UTF-8) of a character.
* If $before_needle is set to TRUE, the function returns all of $haystack from the beginning to the first occurrence of $needle.
* If $before_needle is set to FALSE, the function returns all of $haystack from the first occurrence of $needle to the end.
* If $needle is not a string, it is converted to an integer and applied as the
* ordinal value (codepoint if the encoding is UTF-8) of a character.
* If $before_needle is set to TRUE, the function returns all of $haystack
* from the beginning to the first occurrence of $needle.
* If $before_needle is set to FALSE, the function returns all of $haystack f
* rom the first occurrence of $needle to the end.
* This function is aimed at replacing the functions stristr() and mb_stristr() for human-language strings.
* @link http://php.net/manual/en/function.stristr
* @link http://php.net/manual/en/function.mb-stristr
@ -1340,11 +1393,12 @@ function api_strtoupper($string, $encoding = null)
}
/**
// Gets part of a string.
* // Gets part of a string.
* @param string $string The input string.
* @param int $start The first position from which the extracted part begins.
* @param int $length The length in character of the extracted part.
* @param string $encoding (optional) The used internally by this function character encoding. If it is omitted, the platform character set will be used by default.
* @param string $encoding (optional) The used internally by this function
* character encoding. If it is omitted, the platform character set will be used by default.
* @return string Returns the part of the string specified by the start and length parameters.
* Note: First character's position is 0. Second character position is 1, and so on.
* This function is aimed at replacing the functions substr() and mb_substr() for human-language strings.
@ -1434,7 +1488,8 @@ function api_ucwords($string, $encoding = null)
* Performs a regular expression match, UTF-8 aware when it is applicable.
* @param string $pattern The pattern to search for, as a string.
* @param string $subject The input string.
* @param array &$matches (optional) If matches is provided, then it is filled with the results of search (as an array).
* @param array &$matches (optional) If matches is provided,
* then it is filled with the results of search (as an array).
* $matches[0] will contain the text that matched the full pattern, $matches[1] will have the text that matched the first captured parenthesized subpattern, and so on.
* @param int $flags (optional) Could be PREG_OFFSET_CAPTURE. If this flag is passed, for every occurring match the appendant string offset will also be returned.
* Note that this changes the return value in an array where every element is an array consisting of the matched string at index 0 and its string offset into subject at index 1.
@ -1443,7 +1498,14 @@ function api_ucwords($string, $encoding = null)
* @return int|boolean Returns the number of times pattern matches or FALSE if an error occurred.
* @link http://php.net/preg_match
*/
function api_preg_match($pattern, $subject, &$matches = null, $flags = 0, $offset = 0, $encoding = null) {
function api_preg_match(
$pattern,
$subject,
&$matches = null,
$flags = 0,
$offset = 0,
$encoding = null
) {
if (empty($encoding)) {
$encoding = _api_mb_internal_encoding();
}
@ -1489,7 +1551,8 @@ function api_preg_match_all($pattern, $subject, &$matches, $flags = PREG_PATTERN
* If matches are found, the new subject will be returned, otherwise subject will be returned unchanged or NULL if an error occurred.
* @link http://php.net/preg_replace
*/
function api_preg_replace($pattern, $replacement, $subject, $limit = -1, &$count = 0, $encoding = null) {
function api_preg_replace($pattern, $replacement, $subject, $limit = -1, &$count = 0, $encoding = null)
{
if (empty($encoding)) {
$encoding = _api_mb_internal_encoding();
}
@ -1539,7 +1602,8 @@ function api_preg_split($pattern, $subject, $limit = -1, $flags = 0, $encoding =
* This function is aimed at replacing the function strcasecmp() for human-language strings.
* @link http://php.net/manual/en/function.strcasecmp
*/
function api_strcasecmp($string1, $string2, $language = null, $encoding = null) {
function api_strcasecmp($string1, $string2, $language = null, $encoding = null)
{
return api_strcmp(api_strtolower($string1, $encoding), api_strtolower($string2, $encoding), $language, $encoding);
}
@ -1746,7 +1810,8 @@ function api_is_valid_utf8($string)
/**
* Checks whether a string contains 7-bit ASCII characters only.
* @param string $string The string to be tested/validated.
* @return bool Returns TRUE when the tested string contains 7-bit ASCII characters only, FALSE othewise.
* @return bool Returns TRUE when the tested string contains 7-bit
* ASCII characters only, FALSE othewise.
*/
function api_is_valid_ascii(&$string)
{
@ -1780,10 +1845,12 @@ function get_plugin_lang($variable, $pluginName) {
/**
* Returns an array of translated week days and months, short and normal names.
* @param string $language (optional) Language id. If it is omitted, the current interface language is assumed.
* @param string $language (optional Language id. If it is omitted,
* the current interface language is assumed.
* @return array Returns a multidimensional array with translated week days and months.
*/
function &_api_get_day_month_names($language = null) {
function &_api_get_day_month_names($language = null)
{
static $date_parts = array();
if (empty($language)) {
$language = api_get_interface_language();
@ -1813,12 +1880,28 @@ function &_api_get_day_month_names($language = null) {
'December',
);
for ($i = 0; $i < 7; $i++) {
$date_parts[$language]['days_short'][] = get_lang($week_day[$i].'Short', '', $language);
$date_parts[$language]['days_long'][] = get_lang($week_day[$i].'Long', '', $language);
$date_parts[$language]['days_short'][] = get_lang(
$week_day[$i].'Short',
'',
$language
);
$date_parts[$language]['days_long'][] = get_lang(
$week_day[$i].'Long',
'',
$language
);
}
for ($i = 0; $i < 12; $i++) {
$date_parts[$language]['months_short'][] = get_lang($month[$i].'Short', '', $language);
$date_parts[$language]['months_long'][] = get_lang($month[$i].'Long', '', $language);
$date_parts[$language]['months_short'][] = get_lang(
$month[$i].'Short',
'',
$language
);
$date_parts[$language]['months_long'][] = get_lang(
$month[$i].'Long',
'',
$language
);
}
}
return $date_parts[$language];
@ -1839,7 +1922,7 @@ function _api_get_person_name_convention($language, $type)
if (!isset($conventions)) {
$file = __DIR__.'/internationalization_database/name_order_conventions.php';
if (file_exists($file)) {
$conventions = include ($file);
$conventions = include $file;
} else {
$conventions = array(
'english' => array(
@ -1863,7 +1946,19 @@ function _api_get_person_name_convention($language, $type)
$replacement2 = array('%f', '%l', '%t');
foreach (array_keys($conventions) as $key) {
$conventions[$key]['format'] = str_replace($search1, $replacement1, $conventions[$key]['format']);
$conventions[$key]['format'] = _api_validate_person_name_format(_api_clean_person_name(str_replace('%', ' %', str_ireplace($search2, $replacement2, $conventions[$key]['format']))));
$conventions[$key]['format'] = _api_validate_person_name_format(
_api_clean_person_name(
str_replace(
'%',
' %',
str_ireplace(
$search2,
$replacement2,
$conventions[$key]['format']
)
)
)
);
$conventions[$key]['sort_by'] = strtolower($conventions[$key]['sort_by']) != 'last_name' ? true : false;
}
}

@ -363,7 +363,7 @@ $_configuration['tracking_columns'] = [
//$_configuration['remove_session_url']= false ;
//
//
// AGENDA CONFIGURATION SETTINGS
// ------ AGENDA CONFIGURATION SETTINGS
// Shows a legend in the agenda tool
/*
$_configuration['agenda_legend'] = [
@ -382,7 +382,7 @@ $_configuration['agenda_colors'] = [
'student_publication' => '#FF8C00'
];
*/
//
// ------
//
// Save some tool titles with HTML editor
// $_configuration['save_titles_as_html'] = false;
@ -413,7 +413,8 @@ $_configuration['agenda_colors'] = [
//$_configuration['allow_quiz_question_feedback'] = false;
// Show view accordion lp_category
//$_configuration['lp_category_accordion'] = false;
// HTTP headers security
//
// ------ HTTP headers security
// This section relates to options to increase the security of your Chamilo
// portal against attacks specifically focused on HTTP headers vulnerabilities
// These are all disabled by default, because some of these settings might
@ -465,7 +466,8 @@ $_configuration['agenda_colors'] = [
// information the browser includes with navigation away from a document
// and should be set by all sites.
//$_configuration['security_referrer_policy'] = 'origin-when-cross-origin';
// HTTP headers security section ends here
// ------ HTTP headers security section ends here
//
// Add answered_at field in table survey_invitation
// Requires DB change:
// ALTER TABLE c_survey_invitation ADD answered_at DATETIME DEFAULT NULL;
@ -485,4 +487,3 @@ $_configuration['send_all_emails_to'] = [
'admin2@example.com',
]
];*/

@ -287,7 +287,6 @@ $(document).ready(function() {
} else {
$('#end_date').html('');
}
alert('{{ type_event_color }}');
$('#color_calendar')
.html('{{ type_label | escape('js')}}')

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save