[Koha-bugs] [Bug 18117] Convert browser alerts to modals

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Feb 15 14:08:56 CET 2017


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18117

--- Comment #1 from Owen Leonard <oleonard at myacpl.org> ---
I think it's important to distinguish between a couple of different situations
in which we ask the user for confirmation of an action:

- "Simple" delete confirmations, where we ask
  "Are you sure? Yes/No" -- Usually a JS alert

- Confirmation requests which display more information
  for the user to consider before they confirm. Commonly
  seen in Administration scripts.

The latter of those two seem more suited to conversion to modals, although it
would require API work to ensure that the additional information could be
pulled via AJAX for display in the modal. For instance: "This library cannot be
deleted. Patrons or items are still using it."

Personally I think the ease and speed of a JavaScript alert makes it
appropriate for simple delete confirmations. All modal operations come with the
added overhead of more code and are slower to operate.

I don't find the visual consistency between browsers to be an issue. I would
think people know what their browser's alerts look like and are not concerned
that they look different from another browser's alert.

Going forward I think we should keep in mind that the conversion to modals
isn't simple template work (for the AJAXy reason above) and without that
problem prepared for we'll still be stuck with inconsistency for quite a while.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list