diff --git a/assets/js/user.js b/assets/js/user.js index 635ad86..8f10783 100644 --- a/assets/js/user.js +++ b/assets/js/user.js @@ -2,7 +2,7 @@ $(document).ready(function() { // Typeahead for username. $('.username-typeahead').typeahead({ - 'source': '/user/typeahead', + 'source': config.base_url + 'user/typeahead', 'minLength': 3 }); diff --git a/templates/admin/user/role/index.mustache b/templates/admin/user/role/index.mustache index 6309b09..d2c561e 100644 --- a/templates/admin/user/role/index.mustache +++ b/templates/admin/user/role/index.mustache @@ -1,3 +1,5 @@ +{{csrf}} +