lib/sensu-dashboard/views/event_templates.erb in sensu-dashboard-sonian-0.9.6 vs lib/sensu-dashboard/views/event_templates.erb in sensu-dashboard-sonian-0.9.8.beta
- old
+ new
@@ -169,10 +169,10 @@
alert('Failed to resolve event');
}
});
});
-$("input[type=text]").autoSuggest("http://" + location.hostname + ":" + location.port + "/autocomplete.json", {
+$("input[type=text]").autoSuggest(location.protocol + "//" + location.hostname + ":" + location.port + "/autocomplete.json", {
startText: "Enter keywords to filter by",
selectedItemProp: "name",
searchObjProps: "name",
selectionAdded: function(elem) {
fetchEvents();
\ No newline at end of file