[Koha-bugs] [Bug 25251] When a record has no items click delete all does not need an alert

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Mar 14 19:20:33 CET 2022


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

--- Comment #6 from Nick Clemens <nick at bywatersolutions.com> ---
(In reply to Owen Leonard from comment #5)
> Nick what would you think of this:
> 
>      $("#batchedit-disabled,#batchdelete-disabled,#deleteallitems-disabled")
>          .on("click",function(e){
> -            e.preventDefault();
> -            alertNoItems();
> +            e.stopPropagation();
>          })
>          .tooltip();
> 
> This would remove the alert, but it would also prevent the menu from closing
> when the user clicks on a disabled link. This makes sense to me because a
> user clicking on a disabled link probably means they're not paying
> attention. In that case having nothing happen is better than having
> something happen (even if it's just the menu closing).

I would like that :-) I wanted it, but didn't know how to attain it - would you
like to add the followup?

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


More information about the Koha-bugs mailing list