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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smtp_servers.tt (-6 / +5 lines)
Lines 317-324 Link Here
317
                            <div id="default_confirm_dialog">Are you sure you want to change the default SMTP server?</div>
317
                            <div id="default_confirm_dialog">Are you sure you want to change the default SMTP server?</div>
318
                        </div>
318
                        </div>
319
                        <div class="modal-footer">
319
                        <div class="modal-footer">
320
                            <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>
320
                            <a id="default_confirm_dialog" href="#" class="btn btn-primary default_confirm_modal_yes" id="default_confirm_modal_button" role="button" data-toggle="modal">Yes</a>
321
                            <button class="btn btn-link default_confirm_modal_no" data-dismiss="modal" aria-hidden="true">No</button>
321
                            <button class="btn btn-default default_confirm_modal_no" data-dismiss="modal" aria-hidden="true">No</button>
322
                        </div>
322
                        </div>
323
                    </div> <!-- /.modal-content -->
323
                    </div> <!-- /.modal-content -->
324
                </div> <!-- /.modal-dialog -->
324
                </div> <!-- /.modal-dialog -->
Lines 456-469 Link Here
456
            });
456
            });
457
457
458
            $('#smtp_default').on( "click", function () {
458
            $('#smtp_default').on( "click", function () {
459
                $("#default_confirm_modal").show();
459
                $("#default_confirm_modal").modal('show');
460
            });
460
            });
461
            $('.default_confirm_modal_yes').on( "click", function () {
461
            $('.default_confirm_modal_yes').on( "click", function () {
462
                $("#default_confirm_modal").hide();
462
                $("#default_confirm_modal").modal('hide');
463
            });
463
            });
464
            $('.default_confirm_modal_no').on( "click", function () {
464
            $('.default_confirm_modal_no').on( "click", function () {
465
                $("#smtp_default").prop('checked', !$("#smtp_default").prop('checked') );
465
                $("#smtp_default").prop('checked', !$("#smtp_default").prop('checked') );
466
                $("#default_confirm_modal").hide();
466
                $("#default_confirm_modal").modal('hide');
467
            });
467
            });
468
468
469
            $("#delete_confirm_modal_button").on( "click", function () {
469
            $("#delete_confirm_modal_button").on( "click", function () {
470
- 

Return to bug 34616