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

(-)a/koha-tmpl/intranet-tmpl/prog/en/js/acq.js (-3 / +2 lines)
Lines 674-680 function calcNewsuggTotal(){ Link Here
674
674
675
function getAuthValueDropbox( name, cat, destination, selected ) {
675
function getAuthValueDropbox( name, cat, destination, selected ) {
676
    if (cat == null || cat == "") {
676
    if (cat == null || cat == "") {
677
        $(destination).replaceWith(' <input type="text" name="' + name + '" />' );
677
        $(destination).replaceWith(' <input type="text" name="' + name + '" value="' + selected + '" />' );
678
        return;
678
        return;
679
    }
679
    }
680
    $.ajax({
680
    $.ajax({
Lines 687-693 function getAuthValueDropbox( name, cat, destination, selected ) { Link Here
687
        async: false,
687
        async: false,
688
        success: function(data){
688
        success: function(data){
689
            if(data === "0"){
689
            if(data === "0"){
690
                $(destination).replaceWith(' <input type="text" name="' + name + '" />' );
690
                $(destination).replaceWith(' <input type="text" name="' + name + '" value="' + selected + '" />' );
691
            }else{
691
            }else{
692
                $(destination).replaceWith(data);
692
                $(destination).replaceWith(data);
693
            }
693
            }
694
- 

Return to bug 7180