Bugzilla – Attachment 74169 Details for
Bug 12123
HTML notices can break the notice viewer
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 12123 - Make iframe large enough to remove scroll bars
Bug-12123---Make-iframe-large-enough-to-remove-scr.patch (text/plain), 1.33 KB, created by
Kyle M Hall
on 2018-04-13 13:57:50 UTC
(
hide
)
Description:
Bug 12123 - Make iframe large enough to remove scroll bars
Filename:
MIME Type:
Creator:
Kyle M Hall
Created:
2018-04-13 13:57:50 UTC
Size:
1.33 KB
patch
obsolete
>From 6f81af4de497204c0fcb29b269ada7b88110149c Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatetsolutions.com> >Date: Fri, 13 Apr 2018 09:57:38 -0400 >Subject: [PATCH] Bug 12123 - Make iframe large enough to remove scroll bars > >--- > koha-tmpl/intranet-tmpl/prog/en/modules/members/notices.tt | 8 ++++++++ > 1 file changed, 8 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/notices.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/notices.tt >index 0315dcd5e0..b0ad7e8b42 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/notices.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/notices.tt >@@ -104,6 +104,14 @@ > var rowid = $(this).data("noticeid"); > $("#notice"+rowid).toggle(); > $("#resend_notice"+rowid).toggle(); >+ var iframe = $("#notice"+rowid).children('iframe'); >+ // Adding some padding to the height and width to remove scrollbars >+ var height = iframe.get(0).contentWindow.document.body.scrollHeight + 25; >+ var width = iframe.get(0).contentWindow.document.body.scrollWidth + 25; >+ iframe.css({ >+ 'width': width + 'px', >+ 'height': height + 'px' >+ }); > }); > }); > </script> >-- >2.15.1 (Apple Git-101)
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 12123
:
27402
|
27403
|
33863
|
33876
|
33882
|
33885
|
33888
|
33950
|
33976
|
73650
|
73758
|
74113
| 74169