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 675-681 function calcNewsuggTotal(){ Link Here
675
675
676
function getAuthValueDropbox( name, cat, destination, selected ) {
676
function getAuthValueDropbox( name, cat, destination, selected ) {
677
    if (cat == null || cat == "") {
677
    if (cat == null || cat == "") {
678
        $(destination).replaceWith(' <input type="text" name="' + name + '" />' );
678
        $(destination).replaceWith(' <input type="text" name="' + name + '" value="' + selected + '" />' );
679
        return;
679
        return;
680
    }
680
    }
681
    $.ajax({
681
    $.ajax({
Lines 688-694 function getAuthValueDropbox( name, cat, destination, selected ) { Link Here
688
        async: false,
688
        async: false,
689
        success: function(data){
689
        success: function(data){
690
            if(data === "0"){
690
            if(data === "0"){
691
                $(destination).replaceWith(' <input type="text" name="' + name + '" />' );
691
                $(destination).replaceWith(' <input type="text" name="' + name + '" value="' + selected + '" />' );
692
            }else{
692
            }else{
693
                $(destination).replaceWith(data);
693
                $(destination).replaceWith(data);
694
            }
694
            }
695
- 

Return to bug 7180