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

(-)file_not_specified_in_diff (-9 / +11 lines)
Line  Link Here
0
-- koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tmpl
0
++ koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tmpl
Lines 453-466 Link Here
453
453
454
    // Changing the "..." link's onclick attribute for plugin callback
454
    // Changing the "..." link's onclick attribute for plugin callback
455
    var links  = clone.getElementsByTagName('a');
455
    var links  = clone.getElementsByTagName('a');
456
    var link = links[0];
456
    if (links.length>0) {
457
    var buttonDotOnClick = link.getAttribute('onclick');
457
	    var link = links[0];
458
    if(buttonDotOnClick.match('Clictag')){   // -1- It s a plugin
458
	    var buttonDotOnClick = link.getAttribute('onclick');
459
	var re = /\('.*'\)/i;
459
	    if(buttonDotOnClick.match('Clictag')){   // -1- It s a plugin
460
        buttonDotOnClick = buttonDotOnClick.replace(re,"('"+linkid+"')");
460
		var re = /\('.*'\)/i;
461
        if(buttonDotOnClick){
461
	        buttonDotOnClick = buttonDotOnClick.replace(re,"('"+linkid+"')");
462
	    link.setAttribute('onclick',buttonDotOnClick);
462
	        if(buttonDotOnClick){
463
        }
463
		    link.setAttribute('onclick',buttonDotOnClick);
464
	        }
465
	    }
464
    }
466
    }
465
467
466
468

Return to bug 4867