notify-events: i18n, show details, menu entry
* add menu entry * toggle details * show status icons instead of text * internationalization
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user