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

(-)a/koha-tmpl/intranet-tmpl/prog/js/cataloging_additem.js (-3 / +5 lines)
Lines 54-63 $(document).ready(function(){ Link Here
54
    var multiCopyControl = $("#add_multiple_copies_span");
54
    var multiCopyControl = $("#add_multiple_copies_span");
55
    var addMultipleBlock = $("#addmultiple");
55
    var addMultipleBlock = $("#addmultiple");
56
    var addSingleBlock = $("#addsingle");
56
    var addSingleBlock = $("#addsingle");
57
    var saveAsTemplateControl = $("#save_as_template_span");
58
    var saveTemplateBlock = $("#savetemplate");
59
57
    multiCopyControl.hide();
60
    multiCopyControl.hide();
58
    $("#add_multiple_copies").on("click",function(e){
61
    $("#add_multiple_copies").on("click",function(e){
59
        e.preventDefault;
62
        e.preventDefault;
60
        addMultipleBlock.toggle();
63
        addMultipleBlock.toggle();
64
        saveTemplateBlock.toggle();
61
        addSingleBlock.toggle();
65
        addSingleBlock.toggle();
62
        multiCopyControl.toggle();
66
        multiCopyControl.toggle();
63
        $('body,html').animate({ scrollTop: $('body').height() }, 100);
67
        $('body,html').animate({ scrollTop: $('body').height() }, 100);
Lines 65-76 $(document).ready(function(){ Link Here
65
    $("#cancel_add_multiple").on("click",function(e){
69
    $("#cancel_add_multiple").on("click",function(e){
66
        e.preventDefault();
70
        e.preventDefault();
67
        addMultipleBlock.toggle();
71
        addMultipleBlock.toggle();
72
        saveTemplateBlock.toggle();
68
        addSingleBlock.toggle();
73
        addSingleBlock.toggle();
69
        multiCopyControl.toggle();
74
        multiCopyControl.toggle();
70
    });
75
    });
71
76
72
    var saveAsTemplateControl = $("#save_as_template_span");
73
    var saveTemplateBlock = $("#savetemplate");
74
    saveAsTemplateControl.hide();
77
    saveAsTemplateControl.hide();
75
    $("#save_as_template").on("click",function(e){
78
    $("#save_as_template").on("click",function(e){
76
        e.preventDefault;
79
        e.preventDefault;
77
- 

Return to bug 24606