+
diff --git a/src/main/webapp/resources/js/customDatatable.js b/src/main/webapp/resources/js/customDatatable.js
index 2504d03..26126ba 100644
--- a/src/main/webapp/resources/js/customDatatable.js
+++ b/src/main/webapp/resources/js/customDatatable.js
@@ -1,6 +1,6 @@
var form;
-function makeEditable(ajaxUrl) {
+function makeEditable() {
form = $('#detailsForm');
$('#add').click(function () {
@@ -33,6 +33,7 @@ function makeEditable(ajaxUrl) {
$(document).ajaxSend(function(e, xhr, options) {
xhr.setRequestHeader(header, token);
});
+
init();
}
diff --git a/src/test/java/ru/javawebinar/topjava/web/user/AdminRestControllerTest.java b/src/test/java/ru/javawebinar/topjava/web/user/AdminRestControllerTest.java
index 579fc6b..55941c1 100644
--- a/src/test/java/ru/javawebinar/topjava/web/user/AdminRestControllerTest.java
+++ b/src/test/java/ru/javawebinar/topjava/web/user/AdminRestControllerTest.java
@@ -110,7 +110,8 @@ public void testCreate() throws Exception {
@Test
public void testGetAll() throws Exception {
- TestUtil.print(mockMvc.perform(get(REST_URL).contentType(MediaType.APPLICATION_JSON)
+ TestUtil.print(mockMvc.perform(get(REST_URL)
+ .contentType(MediaType.APPLICATION_JSON)
.with(userHttpBasic(ADMIN)))
.andExpect(status().isOk())
.andExpect(content().contentType(MediaType.APPLICATION_JSON))