File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed
openwisp_controller/config
templates/admin/device_group Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ django.jQuery(function ($) {
4
4
backendFieldSelector = "#id_config-0-backend" ,
5
5
orgFieldSelector = "#id_organization" ,
6
6
isDeviceGroup = function ( ) {
7
- return window . _deviceGroup ;
7
+ return window . _deviceGroupId !== undefined ;
8
8
} ,
9
9
templatesFieldName = function ( ) {
10
10
return isDeviceGroup ( ) ? "templates" : "config-0-templates" ;
Original file line number Diff line number Diff line change 12
12
( function ( $ ) {
13
13
$ ( document ) . ready ( function ( ) {
14
14
window . _relevantTemplateUrl = "{{ relevant_template_url | safe }}" ;
15
- window . _deviceGroup = true ;
16
15
window . _deviceGroupId = "{{ original.pk }}" ;
17
16
window . bindDefaultTemplateLoading ( ) ;
18
17
} )
You can’t perform that action at this time.
0 commit comments