Skip to content

Commit f0d38ef

Browse files
committed
[unsaved_changes.js] Ignore device location field openwisp#388
unsaved changes js is triggered when device have geographic location defined, fixed it by ignoring the input field for device location Fixes openwisp#388
1 parent 460c86c commit f0d38ef

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

openwisp_controller/config/static/config/js/unsaved_changes.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
name == 'csrfmiddlewaretoken' ||
1313
// ignore hidden inline helper fields
1414
name.indexOf('__prefix__') >= 0 ||
15-
name.indexOf('root') === 0) {
15+
name.indexOf('root') === 0 ||
16+
// ignore device location field
17+
name.substr(0, 14) == 'devicelocation') {
1618
return;
1719
}
1820
// fix checkbox values inconsistency

0 commit comments

Comments
 (0)