View | Details | Raw Unified | Return to bug 22343
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smtp_servers.tt (-4 / +3 lines)
Lines 373-379 Link Here
373
                    {
373
                    {
374
                        "data": function( row, type, val, meta ) {
374
                        "data": function( row, type, val, meta ) {
375
                            var result = '<a class="btn btn-default btn-xs" role="button" href="/cgi-bin/koha/admin/smtp_servers.pl?op=edit_form&amp;smtp_server_id='+ encodeURIComponent(row.smtp_server_id) +'"><i class="fa fa-pencil" aria-hidden="true"></i> '+_("Edit")+'</a>'+"\n";
375
                            var result = '<a class="btn btn-default btn-xs" role="button" href="/cgi-bin/koha/admin/smtp_servers.pl?op=edit_form&amp;smtp_server_id='+ encodeURIComponent(row.smtp_server_id) +'"><i class="fa fa-pencil" aria-hidden="true"></i> '+_("Edit")+'</a>'+"\n";
376
                            result += '<a class="btn btn-default btn-xs delete_server" role="button" href="#" data-toggle="modal" data-target="#delete_confirm_modal" data-smtp-server-id="'+ encodeURIComponent(row.smtp_server_id) +'" data-smtp-server-name="'+ encodeURIComponent(row.name) +'"><i class="fa fa-trash" aria-hidden="true"></i>'+_("Delete")+'</a>';
376
                            result += '<a class="btn btn-default btn-xs delete_server" role="button" href="#" data-toggle="modal" data-target="#delete_confirm_modal" data-smtp-server-id="'+ encodeURIComponent(row.smtp_server_id) +'" data-smtp-server-name="'+ encodeURIComponent(row.name.escapeHtml()) +'"><i class="fa fa-trash" aria-hidden="true"></i>'+_("Delete")+'</a>';
377
                            return result;
377
                            return result;
378
                        },
378
                        },
379
                        "searchable": false,
379
                        "searchable": false,
Lines 387-395 Link Here
387
                var smtp_server_name = $(this).data('smtp-server-name');
387
                var smtp_server_name = $(this).data('smtp-server-name');
388
388
389
                $("#delete_confirm_dialog").html(
389
                $("#delete_confirm_dialog").html(
390
                    _("You are about to delete the \"%s\" SMTP server.").format(smtp_server_name)
390
                    _("You are about to delete the \"%s\" SMTP server.").format(decodeURIComponent(smtp_server_name))
391
                );
391
                );
392
                $("#delete_confirm_modal_button").attr("href", "/cgi-bin/koha/admin/smtp_servers.pl?op=delete&amp;smtp_server_id=" + encodeURIComponent(smtp_server_id));
392
                $("#delete_confirm_modal_button").attr("href", "/cgi-bin/koha/admin/smtp_servers.pl?op=delete&amp;smtp_server_id=" + decodeURIComponent(smtp_server_id));
393
            });
393
            });
394
        });
394
        });
395
    </script>
395
    </script>
396
- 

Return to bug 22343