1

I would like to add a javascript in the gluon webinterface so if you enter a pair of coordinates into the latitude input field, the logitute part is automatically moved to the other input field.

The LuCI documentation doesn't shw such options.

How can I add such a javascript in the luci interface?

rubo77
  • 19,527
  • 31
  • 134
  • 226

1 Answers1

1

I just added the javascript in the view at the end here:

https://github.com/rubo77/packages/blob/coordinates/gluon/gluon-config-mode/files/usr/lib/lua/luci/view/gluon-config-mode/cbi/wizard.htm

Which is quite a hack, better create a package, seee:

https://github.com/freifunk-gluon/packages/pull/47

rubo77
  • 19,527
  • 31
  • 134
  • 226