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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smtp_servers.tt (-1 / +29 lines)
Lines 310-315 Link Here
310
                </div> <!-- /.modal-dialog -->
310
                </div> <!-- /.modal-dialog -->
311
            </div> <!-- #delete_confirm_modal -->
311
            </div> <!-- #delete_confirm_modal -->
312
312
313
            <div id="default_confirm_modal" class="modal" tabindex="-1" role="dialog" aria-labelledby="default_confirm_modal_label" aria-hidden="true">
314
                <div class="modal-dialog">
315
                    <div class="modal-content">
316
                        <div class="modal-header">
317
                            <button type="button" class="default_confirm_modal_no closebtn" data-dismiss="modal" aria-hidden="true">×</button>
318
                            <h3 id="default_confirm_modal_label">Set default server</h3>
319
                        </div>
320
                        <div class="modal-body">
321
                            <div id="default_confirm_dialog">Are you sure you want to change the default SMTP server?</div>
322
                        </div>
323
                        <div class="modal-footer">
324
                            <a id="default_confirm_dialog" href="#" class="btn btn-default default_confirm_modal_yes" id="default_confirm_modal_button" role="button" data-toggle="modal">Yes</a>
325
                            <button class="btn btn-link default_confirm_modal_no" data-dismiss="modal" aria-hidden="true">No</button>
326
                        </div>
327
                    </div> <!-- /.modal-content -->
328
                </div> <!-- /.modal-dialog -->
329
            </div> <!-- #default_confirm_modal -->
330
313
            </main>
331
            </main>
314
        </div> <!-- /.col-sm-10.col-sm-push-2 -->
332
        </div> <!-- /.col-sm-10.col-sm-push-2 -->
315
333
Lines 441-446 Link Here
441
                $("#delete_confirm_modal_button").data('smtp-server-name', smtp_server_name);
459
                $("#delete_confirm_modal_button").data('smtp-server-name', smtp_server_name);
442
            });
460
            });
443
461
462
            $('#smtp_default').on( "click", function () {
463
                $("#default_confirm_modal").show();
464
            });
465
            $('.default_confirm_modal_yes').on( "click", function () {
466
                $("#default_confirm_modal").hide();
467
            });
468
            $('.default_confirm_modal_no').on( "click", function () {
469
                $("#smtp_default").prop('checked', !$("#smtp_default").prop('checked') );
470
                $("#default_confirm_modal").hide();
471
            });
472
444
            $("#delete_confirm_modal_button").on( "click", function () {
473
            $("#delete_confirm_modal_button").on( "click", function () {
445
474
446
                var smtp_server_id   = $(this).data('smtp-server-id');
475
                var smtp_server_id   = $(this).data('smtp-server-id');
447
- 

Return to bug 27424