Bugzilla – Attachment 50088 Details for
Bug 16230
Show tooltip with menu item when fund cannot be deleted
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16230 - Show tooltip with menu item when fund cannot be deleted
Bug-16230---Show-tooltip-with-menu-item-when-fund-.patch (text/plain), 1.89 KB, created by
Owen Leonard
on 2016-04-08 17:37:50 UTC
(
hide
)
Description:
Bug 16230 - Show tooltip with menu item when fund cannot be deleted
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2016-04-08 17:37:50 UTC
Size:
1.89 KB
patch
obsolete
>From 3ef2194fb14ee61a2c41feb71e0a6a751e6c0f28 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Fri, 8 Apr 2016 13:33:01 -0400 >Subject: [PATCH] Bug 16230 - Show tooltip with menu item when fund cannot be > deleted >Content-Type: text/plain; charset="utf-8" > >This patch enables Bootstrap to generate a tooltip for the fund deletion >menu item when a fund cannot be deleted because it has children. > >Also changed: Enable translation of the associated error message. > >To test you must have at least one fund which has a child fund. Apply >the patch and go to Administration -> Funds. > >- In the list of funds, find a fund which has children. >- Click the "Actions" menu. The "Delete" item should be disabled. >- Hovering over the "Delete" item should display a Bootstrap-style > tooltip with the explanation "This fund has children." >- Clicking the "Delete" item should trigger an alert, "This fund has > children. It cannot be deleted." >- Clicking "Delete" on funds without children should work correctly. >--- > koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt >index fc22747..2679a57 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt >@@ -228,9 +228,9 @@ var MSG_PARENT_BENEATH_BUDGET = "- " + _("New budget-parent is beneath budget") > $("#fundfilters").slideToggle(0); > }); > >- $(".deletefund-disabled").on("click", function(e){ >+ $(".deletefund-disabled").tooltip().on("click", function(e){ > e.preventDefault(); >- alert("This fund has children. It cannot be deleted."); >+ alert(_("This fund has children. It cannot be deleted.")); > }); > }); > //]]> >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 16230
:
50088
|
50108
|
50109