Skip to content

Commit c69a2cb

Browse files
committed
11 0 fix
1 parent 847203d commit c69a2cb

12 files changed

Lines changed: 11 additions & 22 deletions

File tree

src/main/webapp/WEB-INF/jsp/exception/exception.jsp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
<%@ page session="false" %>
21
<%@ page isErrorPage="true" contentType="text/html" pageEncoding="UTF-8" %>
32
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
43
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

src/main/webapp/WEB-INF/jsp/fragments/bodyHeader.jsp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
<%@ page session="false" %>
21
<%@ page contentType="text/html" pageEncoding="UTF-8" %>
32
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
43
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>

src/main/webapp/WEB-INF/jsp/fragments/footer.jsp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
<%@ page session="false" %>
21
<%@ page contentType="text/html" pageEncoding="UTF-8" %>
32
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
43

src/main/webapp/WEB-INF/jsp/fragments/headTag.jsp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
<%@ page session="false" %>
21
<%@ page contentType="text/html" pageEncoding="UTF-8" %>
32
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
43
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>

src/main/webapp/WEB-INF/jsp/fragments/i18n.jsp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
<%@ page session="false" %>
21
<%@ page contentType="text/html" pageEncoding="UTF-8" %>
32
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
43
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

src/main/webapp/WEB-INF/jsp/login.jsp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
<%@ page session="false" %>
21
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
32
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
43
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>

src/main/webapp/WEB-INF/jsp/meals.jsp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
<%@ page session="false" %>
21
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
32
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
43
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>

src/main/webapp/WEB-INF/jsp/profile.jsp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
<%@ page session="false" %>
21
<%@ page contentType="text/html" pageEncoding="UTF-8" %>
32
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
43
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>

src/main/webapp/WEB-INF/jsp/users.jsp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
<%@ page session="false" %>
21
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
32
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
43
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

src/main/webapp/resources/js/datatablesUtil.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ function makeEditable() {
77
});
88
// solve problem with cache in IE: https://stackoverflow.com/a/4303862/548473
99
$.ajaxSetup({ cache: false });
10+
11+
var token = $("meta[name='_csrf']").attr("content");
12+
var header = $("meta[name='_csrf_header']").attr("content");
13+
$(document).ajaxSend(function(e, xhr, options) {
14+
xhr.setRequestHeader(header, token);
15+
});
1016
}
1117

1218
function add() {
@@ -23,12 +29,6 @@ function updateRow(id) {
2329
});
2430
$('#editRow').modal();
2531
});
26-
27-
var token = $("meta[name='_csrf']").attr("content");
28-
var header = $("meta[name='_csrf_header']").attr("content");
29-
$(document).ajaxSend(function(e, xhr, options) {
30-
xhr.setRequestHeader(header, token);
31-
});
3232
}
3333

3434
function deleteRow(id) {

0 commit comments

Comments
 (0)