susee:log
This commit is contained in:
parent
2cf8b3262b
commit
c5114fcbd2
@ -297,12 +297,13 @@ $(document).ready(function () {
|
|||||||
|
|
||||||
$(".fileName").click(function(){
|
$(".fileName").click(function(){
|
||||||
data = $(this).attr('id').split("|");
|
data = $(this).attr('id').split("|");
|
||||||
|
var getUrl = window.location;
|
||||||
|
path_name = getUrl.pathname.slice(0,-4)+'readlogs';
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/api/readlogs",
|
url: path_name,
|
||||||
data: {'file' : data[0] , 'folder' : data[1]},
|
data: {'file' : data[0] , 'folder' : data[1]},
|
||||||
success: function(response) {
|
success: function(response) {
|
||||||
console.log(response);
|
|
||||||
$('.modal-title').html(data[0]);
|
$('.modal-title').html(data[0]);
|
||||||
$('.modal-body').html(response.data);
|
$('.modal-body').html(response.data);
|
||||||
$('#myModal').modal('show');
|
$('#myModal').modal('show');
|
||||||
@ -315,9 +316,12 @@ $(".fileName").click(function(){
|
|||||||
|
|
||||||
$(".delete").click(function(){
|
$(".delete").click(function(){
|
||||||
data = $(this).attr('id').split("|");
|
data = $(this).attr('id').split("|");
|
||||||
|
var getUrl = window.location;
|
||||||
|
path_name = getUrl.pathname.slice(0,-4)+'deletelog';
|
||||||
|
alert(path_name)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/api/deletelog",
|
url: path_name,
|
||||||
data: {'file' : data[0] , 'folder' : data[1]},
|
data: {'file' : data[0] , 'folder' : data[1]},
|
||||||
success: function(response) {
|
success: function(response) {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user