+ 'sPaginationType': "four_button",
+ "aoColumnDefs": [
+ { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
+ { "sType": "title-string", "aTargets" : [ "title-string" ] }
+ ]
+ }));
+
+ var EDIModal = $("#EDI_modal");
+ var EDIModalBody = $("#EDI_modal .modal-body");
+
+ $(".view_message").on("click", function(e){
+ e.preventDefault();
+ var page = $(this).attr("href");
+ EDIModalBody.load(page + " #edimsg");
+ EDIModal.modal("show");
+ });
+ EDIModal.on("click",".closebtn",function(e){
+ e.preventDefault();
+ EDIModal.modal("hide");
+ });
+ EDIModal.on("hidden", function(){
+ EDIModalBody.html("<div id=\"loading\"><img src=\"[% interface %]/[% theme %]/img/loading-small.gif\" alt=\"\" /> "+_("Loading")+"</div>");
+ });
+ $(".delete_msg").on("click",function(){
+ return confirm(_("Are you sure you want to delete this message?"));
+ });