Skip to content

Use bootbox like frontend lib instead of JS alert/confirm? #1095

@ArthurHoaro

Description

@ArthurHoaro

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions