Hello, Chris83, I have one problem! ( On every page I have javascript error
file: $("body").on is not a function
: .../assets/8a27e561/js/bootstrap-typeahead.js
string: 263
…
$(‘body’).on(‘focus.typeahead.data-api’, ‘[data-provide=“typeahead”]’, function (e) {)
…
But I have always connected Jquery
in Firebug
GET jquery.js
200 OK
GET bootstrap-transition.js
200 OK
GET bootstrap-tooltip.js
200 OK
GET bootstrap-popover.js
200 OK
GET bootstrap-typeahead.js
200 OK
in layout integration
<?php $this->widget('ext.bootstrap.widgets.BootTypeahead', array(
'options'=>array(
'source'=>array('Alabama', 'Alaska', 'Arizona', 'Arkansas', 'California', 'Colorado', 'Connecticut', 'Delaware', 'Florida', 'Georgia', 'Hawaii', 'Idaho', 'Illinois', 'Indiana', 'Iowa', 'Kansas', 'Kentucky', 'Louisiana', 'Maine', 'Maryland', 'Massachusetts', 'Michigan', 'Minnesota', 'Mississippi', 'Missouri', 'Montana', 'Nebraska', 'Nevada', 'New Hampshire', 'New Jersey', 'New Mexico', 'New York', 'North Dakota', 'North Carolina', 'Ohio', 'Oklahoma', 'Oregon', 'Pennsylvania', 'Rhode Island', 'South Carolina', 'South Dakota', 'Tennessee', 'Texas', 'Utah', 'Vermont', 'Virginia', 'Washington', 'West Virginia', 'Wisconsin', 'Wyoming'),
'items'=>4,
'matcher'=>"js:function(item) {
return ~item.toLowerCase().indexOf(this.query.toLowerCase());
}",
),
)); ?>
You may know the reason? Thank you!