JOE
2018-10-23 2dcc74041b77d1b910154f155aa5af4ccb5ae839
modify url path
2 files modified
12 ■■■■ changed files
views/modules/list.html 6 ●●●● patch | view | raw | blame | history
views/roles/list.html 6 ●●●● patch | view | raw | blame | history
views/modules/list.html
....@@ -1,11 +1,11 @@
11 {{>layout/header-temp}}
22 <body>
33 <div class="content">
4
- <h2>Module List&nbsp;<a href="{{contextRoot}}/modules/create">ADD</a></h2>
4
+ <h2>Module List&nbsp;<a href="../modules/create">ADD</a></h2>
55 {{#modules}}
66 <h3>
77 {{name}}
8
- <a href="/modules/{{id}}"><span>edit</span></a>
8
+ <a href="../modules/{{id}}"><span>edit</span></a>
99 <a id="{{id}}" class="btn_delete" href="#"><span>delete</span></a>
1010 </h3>
1111 {{/modules}}
....@@ -16,7 +16,7 @@
1616 if(confirm("Are you sure you want to delete this?")){
1717 const id = $(this).attr('id');
1818 $.ajax({
19
- url: "/api/modules/" + id,
19
+ url: "../api/modules/" + id,
2020 method:"delete"
2121 }).done(function(data) {
2222 if(data.deleted == 1) {
views/roles/list.html
....@@ -1,10 +1,10 @@
11 {{>layout/header-temp}}
22 <div class="content">
3
- <h2>Role List&nbsp;<a href="/roles/create">ADD</a></h2>
3
+ <h2>Role List&nbsp;<a href="../roles/create">ADD</a></h2>
44 {{#roles}}
55 <h3>
66 {{name}}
7
- <a href="/roles/{{id}}"><span>edit</span></a>
7
+ <a href="../roles/{{id}}"><span>edit</span></a>
88 <a id="{{id}}" class="btn_delete" href="#"><span>delete</span></a>
99 </h3>
1010 {{/roles}}
....@@ -15,7 +15,7 @@
1515 if(confirm("Are you sure you want to delete this?")){
1616 const id = $(this).attr('id');
1717 $.ajax({
18
- url: "/api/roles/" + id,
18
+ url: "../api/roles/" + id,
1919 method:"delete"
2020 }).done(function(data) {
2121 if(data.deleted == 1) {