luci-base: ui: implement addTimeLimitedNotification
authorPaul Donald <[email protected]>
Thu, 13 Mar 2025 21:50:11 +0000 (22:50 +0100)
committerPaul Donald <[email protected]>
Thu, 13 Mar 2025 21:50:11 +0000 (22:50 +0100)
commit0329854049facca13736e193b9e5fd4909d8e90e
treeddfc580bc83c1c5cd9fe66fa6f83caae401b978d
parentdea8d79888f862c82953b775e55f4d0c672cc897
luci-base: ui: implement addTimeLimitedNotification

Introduce addTimeLimitedNotification which extends addNotification,
with the addition of the 'timeout' parameter.

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

Improved implementation of 53e36e3293bee2ea2ce0fbc1250074c44cfe8335

Signed-off-by: Paul Donald <[email protected]>
modules/luci-base/htdocs/luci-static/resources/ui.js