mirror of
https://github.com/myvesta/vesta
synced 2025-08-20 21:34:12 -07:00
Dmitry M. created event.js model
This commit is contained in:
parent
a0c6072084
commit
ac2aa3c1ce
23 changed files with 329 additions and 726 deletions
|
@ -35,28 +35,6 @@
|
|||
++$i;
|
||||
?>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(function(){
|
||||
$('#delete_dialog_<?php echo "$i" ?>').dialog({
|
||||
modal: true,
|
||||
autoOpen: false,
|
||||
width: 360,
|
||||
buttons: {
|
||||
"Ok": function(event, ui) {
|
||||
location.href = '/delete/ip/?ip=<?php echo "$key" ?>';
|
||||
},
|
||||
"Cancel": function() {
|
||||
$(this).dialog("close");
|
||||
}
|
||||
}
|
||||
});
|
||||
$('#delete_link_<?php echo "$i" ?>').click(function(){
|
||||
$('#delete_dialog_<?php echo "$i" ?>').dialog('open');
|
||||
return false;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<tr class="data-row">
|
||||
<td class="data-dotted" style="padding: 0px 10px 0px 0px" width="150">
|
||||
<table class="data-col1">
|
||||
|
@ -69,11 +47,12 @@
|
|||
<table width="830px">
|
||||
<tr>
|
||||
<td></td>
|
||||
<td class="data-controls" width="50px"><img src="/images/edit.png" width="8px" height="8px"><a href="/edit/ip/?ip=<?php echo $key ?>"> edit</a></td>
|
||||
<td class="data-controls" width="70px">
|
||||
<img src="/images/delete.png" width="7px" height="7px">
|
||||
<a href="#" id="delete_link_<?php echo $i ?>"> delete</a>
|
||||
<div id="delete_dialog_<?php echo $i ?>" title="Confirmation">
|
||||
<td class="data-controls" width="50px"><a href="/edit/ip/?ip=<?php echo $key ?>"><img src="/images/edit.png" width="8px" height="8px"> edit</a></td>
|
||||
<td class="data-controls do_delete" width="70px">
|
||||
<img src="/images/delete.png" width="7px" height="7px" class="do_delete">
|
||||
<a id="delete_link_<?php echo $i ?>" class="do_delete"> delete</a>
|
||||
<input type="hidden" name="delete_url" value="/delete/ip/?ip=<?php echo "$key" ?>" />
|
||||
<div id="delete_dialog_<?php echo $i ?>" class="confirmation-text-delete hidden" title="Confirmation">
|
||||
<p class="counter-value">Are you sure you want to delete <b><?php echo "$key" ?></b> ip?</p>
|
||||
</div>
|
||||
</td>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue