mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-25 08:00:12 +01:00
gdpr fixes
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
parent
8e920260a8
commit
8358dc6ef1
@ -41,8 +41,9 @@
|
||||
<td class="auditcell date"><?php print $d['deleted']; ?></td>
|
||||
<td class="auditcell ip"><?php print $d['reason']; ?></td>
|
||||
<td class="auditcell ref"><?php if($d['deleted'] == 0) { ?><a href="#" onclick="Piler.view_message(<?php print $d['id']; ?>);"><?php } print $d['id']; if($d['deleted'] == 0) { ?></a><?php } ?></td>
|
||||
<td class="auditcell aaa"><a href="#" class="confirm-delete" data-id="<?php print $d['id']; ?>" data-name="<?php print $d['id']; ?>"><i class="icon-remove-sign"></i> <?php print $text_remove; ?></a></td>
|
||||
<td class="auditcell bbb"><a href="#" class="confirm-delete" data-id="<?php print $d['id']; ?>" data-name="<?php print $d['id']; ?>"><i class="icon-ban-circle"></i> <?php print $text_cancel; ?></a></td>
|
||||
<td class="auditcell aaa"><a href="#" data-toggle="modal" data-target="#exampleModal" data-id="<?php print $d['id']; ?>" data-whatever="zzzz"><i class="icon-remove-sign"></i> <?php print $text_remove; ?></a></td>
|
||||
<td class="auditcell aaa"><a href="#" data-toggle="modal" data-target="#exampleModal" data-id="<?php print $d['id']; ?>" data-whatever="zzzz"><i class="icon-ban-circle"></i> <?php print $text_cancel; ?></a></td>
|
||||
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
|
@ -41,6 +41,25 @@
|
||||
|
||||
<div id="messagebox1" class="audit audit-info"></div>
|
||||
|
||||
<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<h3 class="modal-title" id="exampleModalLabel"><?php print $text_confirm; ?> <?php print $text_delete; ?></h3>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<p>Remove message <span id="id1">AAA</span>?</p>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
||||
<a href="#" class="btn btn-primary" id="delete-id"><?php print $text_delete; ?></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="piler1" class="container">
|
||||
|
||||
<div id="searchcontainer">
|
||||
@ -100,6 +119,14 @@
|
||||
$(document).ready(function(){
|
||||
split.init();
|
||||
});
|
||||
|
||||
$('#exampleModal').on('show.bs.modal', function (event) {
|
||||
var button = $(event.relatedTarget) // Button that triggered the modal
|
||||
var id = button.data('id')
|
||||
$('#delete-id').attr('href', 'index.php?route=message/remove&id=' + id + '&confirmed=1')
|
||||
$('#id1').text(id)
|
||||
var modal = $(this)
|
||||
})
|
||||
</script>
|
||||
|
||||
<?php } ?>
|
||||
|
Loading…
Reference in New Issue
Block a user