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

(-)a/koha-tmpl/intranet-tmpl/prog/js/marc_modification_templates.js (-6 / +10 lines)
Lines 47-69 $(document).ready(function() { Link Here
47
        updateAllEvery();
47
        updateAllEvery();
48
    });
48
    });
49
49
50
    $("#new_action").on("click",function(){
50
    $("#new_action").on("click",function(e){
51
        e.preventDefault();
51
        cancelEditAction();
52
        cancelEditAction();
52
        $("#add_action").show();
53
        $("#add_action").show();
53
        $("#action").focus();
54
        $("#action").focus();
54
    });
55
    });
55
56
56
    $(".duplicate_template").on("click",function(){
57
    $(".duplicate_template").on("click",function(e){
58
        e.preventDefault();
57
        var template_id = $(this).data("template_id");
59
        var template_id = $(this).data("template_id");
58
        $("#duplicate_a_template").val(template_id);
60
        $("#duplicate_a_template").val(template_id);
59
        $("#duplicate_current_template").val(1);
61
        $("#duplicate_current_template").val(1);
60
    });
62
    });
61
63
62
    $('#createTemplate').on('shown', function () {
64
    $('#createTemplate').on('shown', function (e) {
65
        e.preventDefault();
63
        $("#template_name").focus();
66
        $("#template_name").focus();
64
    });
67
    });
65
68
66
    $("#duplicate_a_template").on("change",function(){
69
    $("#duplicate_a_template").on("change",function(e){
70
        e.preventDefault();
67
        if( this.value == '' ){
71
        if( this.value == '' ){
68
            $("#duplicate_current_template").val("");
72
            $("#duplicate_current_template").val("");
69
        } else {
73
        } else {
Lines 71-77 $(document).ready(function() { Link Here
71
        }
75
        }
72
    });
76
    });
73
77
74
    $(".delete_template").on("click",function(){
78
    $(".delete_template").on("click",function(e){
79
        e.preventDefault();
75
        return confirmDelete();
80
        return confirmDelete();
76
    });
81
    });
77
82
78
- 

Return to bug 16148