Skip to content

Commit

Permalink
[fix] Fixed render issue in popup page openwisp#113
Browse files Browse the repository at this point in the history
  • Loading branch information
niteshsinha17 committed Mar 30, 2021
1 parent 9b3795e commit e97805a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_x509/static/django-x509/js/x509-admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ django.jQuery(function ($) {
});
var operationType = $('.field-operation_type select');
// enable switcher only in add forms
if (!operationType.length || $('form .deletelink-box').length > 0) {
if (!operationType.length || $('form .deletelink-box').length > 0 || $('input[name=_popup]').length > 0) {
$('.field-operation_type').hide();
return;
}
Expand Down

0 comments on commit e97805a

Please sign in to comment.