Переглянути джерело

Fix placeholder on SelectAjax

Angel Fernando Quiroz Campos 9 роки тому
батько
коміт
ed32d4a747
1 змінених файлів з 1 додано та 2 видалено
  1. 1 2
      main/inc/lib/formvalidator/Element/SelectAjax.php

+ 1 - 2
main/inc/lib/formvalidator/Element/SelectAjax.php

@@ -67,11 +67,10 @@ class SelectAjax extends HTML_QuickForm_select
                 $(function(){
                     $('#{$this->getAttribute('name')}').select2({
                         $languageCondition
-                        placeholder_: '$plHolder',
+                        placeholder: '$plHolder',
                         allowClear: true,
                         width: '$width',
                         minimumInputLength: '$minimumInputLength',
-                        // instead of writing the function to execute the request we use Select2s convenient helper
                         ajax: {
                             url: '{$this->getAttribute('url')}',
                             dataType: 'json',