From 36e43c8ef0213af26afba27b9a8ee214246c5f87 Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Wed, 4 Jul 2018 00:12:21 +0000 Subject: [PATCH] Bug 12365: [FOLLOW-UP] Adding maxlength attribute and popover Test that you can't add a note of more than 100 characters. Test notes with rules, notes are hidden by 'Click to view note' and the popover correctly displays note. --- koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt index 0a10714..48dfd0a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt @@ -213,7 +213,11 @@ [% END %] [% rule.rentaldiscount %] - [% rule.note %] + + [% IF rule.note %] + Click to view note + [% ELSE %] [% END %] + Edit Delete @@ -314,7 +318,7 @@ - + @@ -767,6 +771,8 @@ var MSG_CONFIRM_DELETE = _("Are you sure you want to delete this rule? This cannot be undone."); $(document).ready(function() { + $('[data-toggle="popover"]').popover(); + $(".delete").on("click",function(){ return confirmDelete(MSG_CONFIRM_DELETE); }); -- 2.1.4