Bug 18305 - jquery.fixFloat.js breaks advanced MARC editor
authorDavid Gustafsson <david.gustafsson@ub.gu.se>
Mon, 20 Mar 2017 14:13:13 +0000 (15:13 +0100)
committerBrendan A Gallagher <brendan@bywatersolutions.com>
Wed, 22 Mar 2017 17:40:18 +0000 (17:40 +0000)
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 <mirko@abunchofthings.net>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
koha-tmpl/intranet-tmpl/lib/jquery/plugins/jquery.fixFloat.js

index 2efc96f..36c99b0 100644 (file)
@@ -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,