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 216-222 function calcNewsuggTotal(){ Link Here
216
216
217
function getAuthValueDropbox( name, cat, destination, selected ) {
217
function getAuthValueDropbox( name, cat, destination, selected ) {
218
    if (cat == null || cat == "") {
218
    if (cat == null || cat == "") {
219
        $(destination).replaceWith(' <input type="text" name="' + name + '" />' );
219
        $(destination).replaceWith(' <input type="text" name="' + name + '" value="' + selected + '" />' );
220
        return;
220
        return;
221
    }
221
    }
222
    $.ajax({
222
    $.ajax({
Lines 229-235 function getAuthValueDropbox( name, cat, destination, selected ) { Link Here
229
        async: false,
229
        async: false,
230
        success: function(data){
230
        success: function(data){
231
            if(data === "0"){
231
            if(data === "0"){
232
                $(destination).replaceWith(' <input type="text" name="' + name + '" />' );
232
                $(destination).replaceWith(' <input type="text" name="' + name + '" value="' + selected + '" />' );
233
            }else{
233
            }else{
234
                $(destination).replaceWith(data);
234
                $(destination).replaceWith(data);
235
            }
235
            }
236
- 

Return to bug 7180