Browse Source

Fix placeholder on SelectAjax

Angel Fernando Quiroz Campos 9 years ago
parent
commit
ed32d4a747
1 changed files with 1 additions and 2 deletions
  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',