From 2889c1618fcf035a89ebe46dda3dbd13898eb006 Mon Sep 17 00:00:00 2001 From: David Gustafsson Date: Mon, 20 Mar 2017 15:13:13 +0100 Subject: [PATCH] Bug 18305 - jquery.fixFloat.js breaks advanced MARC editor Remove use of ECMASCRIPT 2015 default parameter syntax in jquery.fixFloat.js to be compatible with a wider range of browser versions. Test plan: 1. Usa a not so modern browser, for example Chrome/Chromium < 49, any version of IE besides Edge, Opera, or Firefox < 15.0. 2. Edit a bibliographic record in staff client and try switching to advanced MARC editor (check console, no errors should appear). Signed-off-by: Mirko Tietgen --- koha-tmpl/intranet-tmpl/lib/jquery/plugins/jquery.fixFloat.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/lib/jquery/plugins/jquery.fixFloat.js b/koha-tmpl/intranet-tmpl/lib/jquery/plugins/jquery.fixFloat.js index 2efc96f..36c99b0 100644 --- a/koha-tmpl/intranet-tmpl/lib/jquery/plugins/jquery.fixFloat.js +++ b/koha-tmpl/intranet-tmpl/lib/jquery/plugins/jquery.fixFloat.js @@ -3,7 +3,8 @@ */ (function ($, window) { "use strict"; - $.fn.fixFloat = function (options={}) { + $.fn.fixFloat = function (options) { + var options = options || {}; var tbh = $(this); var defaults = { enabled: true, -- 2.1.4