瀏覽代碼

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',