I have an issue with the autocomplete widget from jquery(https://jqueryui.com/autocomplete/). When I start the local development server, everything works fine, the widget works perfect, but when I pull the branch on the test server( I have a special testing server that is a copy of the main server), it's not working(and travis tests from github are failing) I don't know if is relevant or not, but I am working with Mojolicious
$(function() {
var pages = [];
% foreach (@$pages) {
pages.push('<%= $_->{title} %>');
pages.push('<%= $_->{id} %>');
% }
$("input[name=page_title]").autocomplete({
source: pages,
autoFocus: true,
minLength: 3
});
});
How can I figure it out?