notify-events: i18n, show details, menu entry

* add menu entry
* toggle details
* show status icons instead of text
* internationalization
This commit is contained in:
Milan
2023-04-10 22:47:21 +02:00
parent 24e1b3b033
commit 172e036242
12 changed files with 141 additions and 52 deletions

View File

@@ -7,12 +7,33 @@ function register_buttons() {
var content = $(data).find("#content");
$('#result').html(content);
var formId = form.attr('id');
$('#'+formId+" .mailHeader").addClass("done");
$('#' + formId+" table").addClass("done");
});
});
}
function hide_details() {
$('table.panel tbody').each(function(){
$(this).children("tr.details").each(function() {
$(this).hide();
})
})
$('table.panel img.toggle').on("click", function() {
if( $(this).attr("src").indexOf("arrow-up") < 0 ){
$(this).attr("src", "image/arrow-up.svg");
} else {
$(this).attr("src", "image/arrow-down.svg");
}
$(this).closest('tbody').children("tr.details").each(function() {
$(this).toggle();
})
})
}
$(document).ready(function() {
hide_details();
register_buttons();
});