Opened 12 years ago

Closed 12 years ago

#19990 closed Bug (needsinfo)

showAddAnotherPopup _popup need a fix

Reported by: Riccardo Di Virgilio Owned by: nobody
Component: contrib.admin Version: 1.5
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

hi inside django.contrib.admin.static.js.admin.RelatedObjectLookups.js

this funcion got POPUP_VAR as _popup, it needs to be fixed to pop

function showAddAnotherPopup(triggeringLink) {

var name = triggeringLink.id.replace(/add_/, );
name = id_to_windowname(name);
href = triggeringLink.href
if (href.indexOf('?') == -1) {

href += '?_popup=1';

} else {

href += '&_popup=1';

}
var win = window.open(href, name, 'height=500,width=800,resizable=yes,scrollbars=yes');
win.focus();
return false;

}

Change History (2)

comment:1 by Jacob, 12 years ago

I'm sorry, but I'm having trouble understanding what's being reported here. Can you clarify, please?

comment:2 by Aymeric Augustin, 12 years ago

Resolution: needsinfo
Status: newclosed
Note: See TracTickets for help on using tickets.
Back to Top