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 681-687 function calcNewsuggTotal(){ Link Here
681
681
682
function getAuthValueDropbox( name, cat, destination, selected ) {
682
function getAuthValueDropbox( name, cat, destination, selected ) {
683
    if (cat == null || cat == "") {
683
    if (cat == null || cat == "") {
684
        $(destination).replaceWith(' <input type="text" name="' + name + '" />' );
684
        $(destination).replaceWith(' <input type="text" name="' + name + '" value="' + selected + '" />' );
685
        return;
685
        return;
686
    }
686
    }
687
    $.ajax({
687
    $.ajax({
Lines 694-700 function getAuthValueDropbox( name, cat, destination, selected ) { Link Here
694
        async: false,
694
        async: false,
695
        success: function(data){
695
        success: function(data){
696
            if(data === "0"){
696
            if(data === "0"){
697
                $(destination).replaceWith(' <input type="text" name="' + name + '" />' );
697
                $(destination).replaceWith(' <input type="text" name="' + name + '" value="' + selected + '" />' );
698
            }else{
698
            }else{
699
                $(destination).replaceWith(data);
699
                $(destination).replaceWith(data);
700
            }
700
            }
701
- 

Return to bug 7180