Related comment in #1072 .
Currently, Shaarli relies on JS alert() to display error message, and confirm(). We should get rid of them, as they're obtrusive browser feature.
ESLint statement:
JavaScript’s alert, confirm, and prompt functions are widely considered to be obtrusive as UI elements and should be replaced by a more appropriate custom UI implementation. Furthermore, alert is often used while debugging code, which should be removed before deployment to production.
We need a library which allows JS+CSS modal. PureCSS provides a modal extension but it relies on jQuery.
A quick Google search gave me tingle.js which is 11kB of compressed JS and CSS, but if anyone knows any other, feel free to contribute.
Related comment in #1072 .
Currently, Shaarli relies on JS
alert()to display error message, andconfirm(). We should get rid of them, as they're obtrusive browser feature.ESLint statement:
We need a library which allows JS+CSS modal. PureCSS provides a modal extension but it relies on jQuery.
A quick Google search gave me tingle.js which is 11kB of compressed JS and CSS, but if anyone knows any other, feel free to contribute.