luci-base: ui: extend addNotification to handle a user-provided timeout
authorPaul Donald <newtwen+github@gmail.com>
Wed, 20 Nov 2024 23:49:57 +0000 (00:49 +0100)
committerPaul Donald <newtwen+github@gmail.com>
Thu, 21 Nov 2024 00:30:48 +0000 (01:30 +0100)
commit53e36e3293bee2ea2ce0fbc1250074c44cfe8335
tree4fa6cc3572ec600d827530fef651b05c16730ac0
parentb9496f2023cb6b5f51dff88f1cf3a3063390dae4
luci-base: ui: extend addNotification to handle a user-provided timeout

A millisecond value after which the notification will disappear
automatically. If omitted, the notification will remain until it
receives the click event.

Existing calls are unaffected.

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
modules/luci-base/htdocs/luci-static/resources/ui.js