We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1332f2b commit 4e16424Copy full SHA for 4e16424
2 files changed
openwisp_controller/config/static/config/js/relevant_templates.js
@@ -4,7 +4,7 @@ django.jQuery(function ($) {
4
backendFieldSelector = "#id_config-0-backend",
5
orgFieldSelector = "#id_organization",
6
isDeviceGroup = function () {
7
- return window._deviceGroup;
+ return window._deviceGroupId !== undefined;
8
},
9
templatesFieldName = function () {
10
return isDeviceGroup() ? "templates" : "config-0-templates";
openwisp_controller/config/templates/admin/device_group/change_form.html
@@ -12,7 +12,6 @@
12
(function ($) {
13
$(document).ready( function () {
14
window._relevantTemplateUrl = "{{ relevant_template_url | safe }}";
15
- window._deviceGroup = true;
16
window._deviceGroupId = "{{ original.pk }}";
17
window.bindDefaultTemplateLoading();
18
})
0 commit comments