Code

#19990 closed Bug (needsinfo)

showAddAnotherPopup _popup need a fix

Reported by: riccardodivirgilio 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;

}

Attachments (0)

Change History (2)

comment:1 Changed 14 months ago by jacob

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

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

comment:2 Changed 14 months ago by aaugustin

  • Resolution set to needsinfo
  • Status changed from new to closed

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.