css, html, delete
This commit is contained in:
@@ -3,7 +3,7 @@ var selected = table.getElementsByClassName('selected');
|
||||
var selectedId = 'None';
|
||||
table.onclick = highlight;
|
||||
|
||||
function select(category) {
|
||||
function select(category, mode) {
|
||||
var id = selectedId;
|
||||
if (id == 'None')
|
||||
{
|
||||
@@ -11,7 +11,19 @@ function select(category) {
|
||||
}
|
||||
else
|
||||
{
|
||||
if(mode == 0){
|
||||
window.location.href = '/detail/?cat=' + category + '&id=' + id;
|
||||
}
|
||||
else {
|
||||
var result = confirm("Sind Sie sicher, dass der Eintrag gelöscht werden soll?");
|
||||
if(result) {
|
||||
window.location.href = '/delete/?cat=' + category + '&id=' + id;
|
||||
return true;
|
||||
}
|
||||
else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user