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

pull/3375/head
Yannick Warnier 5 years ago
commit 8d695d4674
  1. 5
      main/inc/lib/formvalidator/Element/SelectAjax.php
  2. 5
      main/messages/new_message.php

@ -75,6 +75,10 @@ class SelectAjax extends HTML_QuickForm_select
$max = $this->getAttribute('maximumSelectionLength');
$max = !empty($max) ? "maximumSelectionLength: $max, " : '';
// wait XX milliseconds before triggering the request
$delay = (int)$this->getAttribute('delay');
$delay = (0 !== $delay) ? "delay: $delay, " : '';
$html = <<<JS
<script>
$(function(){
@ -87,6 +91,7 @@ class SelectAjax extends HTML_QuickForm_select
tags: $tags,
ajax: {
url: $url,
{$delay}
dataType: 'json',
data: function(params) {
return {

@ -149,6 +149,7 @@ function manageForm($default, $select_from_user_list = null, $sent_to = '', $tpl
[],
[
'multiple' => 'multiple',
'delay' => 1000,
'url' => api_get_path(WEB_AJAX_PATH).'message.ajax.php?a=find_users',
]
);
@ -242,8 +243,8 @@ function manageForm($default, $select_from_user_list = null, $sent_to = '', $tpl
$form->addLabel(
'',
'<iframe
frameborder="0" height="200" width="100%" scrolling="no"
'<iframe
frameborder="0" height="200" width="100%" scrolling="no"
src="'.api_get_path(WEB_CODE_PATH).'messages/record_audio.php"></iframe>'
);

Loading…
Cancel
Save