Commit 65c740e9 by Antonio Ramirez

remove tabs for spaces in js

parent 5e9d3a8f
...@@ -68,9 +68,9 @@ class ActiveField extends \yii\widgets\ActiveField ...@@ -68,9 +68,9 @@ class ActiveField extends \yii\widgets\ActiveField
} }
$this->form->getView()->registerJs(" $this->form->getView()->registerJs("
var datum = new Bloodhound({ var datum = new Bloodhound({
datumTokenizer: function(d){return Bloodhound.tokenizers.whitespace(d.word);}, datumTokenizer: function(d){return Bloodhound.tokenizers.whitespace(d.word);},
queryTokenizer: Bloodhound.tokenizers.whitespace, queryTokenizer: Bloodhound.tokenizers.whitespace,
local: " . Json::encode($data) . " local: " . Json::encode($data) . "
}); });
datum.initialize(); datum.initialize();
jQuery('.typeahead-{$counter}').typeahead(null,{displayKey: 'word', source: datum.ttAdapter()});"); jQuery('.typeahead-{$counter}').typeahead(null,{displayKey: 'word', source: datum.ttAdapter()});");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment