Commit 86fe0662 authored by Lisa Seeto's avatar Lisa Seeto Committed by Cecilia Vela Gurovic
Browse files

Bug 1889341: upgrade jquery 3.4.1 to 3.5.1

 - updated jquery using min file found here: https://code.jquery.com/jquery-3.5.1.min.js



Change-Id: I2d83e0fdf9ff4ab888e16522128778f45d313780
Signed-off-by: default avatarLisa Seeto <lisaseeto@catalyst.net.nz>
(cherry picked from commit 49efbd9b)
parent acac3aee
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -123,7 +123,7 @@ jQuery(function($) {
      var buttongroup = $('<span>', {'class': 'btn-group'});
      buttongroup.append(edit, del);

      var row = $('<tr />', {'id':'menuitem_'+item.id});
      var row = $('<tr></tr>', {'id':'menuitem_'+item.id});
      row.append('<td>' + item.name + '</td>');
      row.append(buttongroup.wrap('<td>').parent());
      return row;
+1 −1
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@
            if (!url) {
                return '-';
            }
            return jQuery('<a/>').attr({ href: url, title: url }).text(shorten(url));
            return jQuery('<a></a>').attr({ href: url, title: url }).text(shorten(url));
        }

        function buildBadgeContent(assertion) {
+1 −1
Original line number Diff line number Diff line
@@ -75,7 +75,7 @@ function connectElements() {
        jQuery('#editsitepage_pageusedefault').on('change', updateSiteDefault);
    }
    // create hidden div to place over tinymce to 'show' when it is disabled from editing
    var changeboxdiv = jQuery('<div />', {'id':'changecheckboxdiv','style':'display:none;background-color: rgba(200,200,200,0.5)'});
    var changeboxdiv = jQuery('<div></div>', {'id':'changecheckboxdiv','style':'display:none;background-color: rgba(200,200,200,0.5)'});
    jQuery(document.body).append(changeboxdiv);
}

+2 −2
Original line number Diff line number Diff line
@@ -25,7 +25,7 @@ function loadGridTranslate(grid, blocks) {
        }
        var blockContent = $('<div id="block_' + block.id + '"><div class="grid-stack-item-content">'
            + block.content +
            '<div/><div/>');
            '</div></div>');
        el = grid.addWidget(
              blockContent,
              block.positionx,
@@ -69,7 +69,7 @@ function loadGrid(grid, blocks) {
        }
        var blockContent = $('<div id="block_' + block.id + '"><div class="grid-stack-item-content">'
            + block.content +
            '<div/><div/>');
            '</div></div>');
        addNewWidget(blockContent, block.id, block, grid, block.class, minWidth, minHeight);
    });

+3 −1
Original line number Diff line number Diff line
@@ -2,7 +2,9 @@ jQuery in Mahara
=================

Website: http://jquery.com/
Version: 3.4.1
Version: 3.5.1

To update fetch the minimised version from the website, e.g https://code.jquery.com/jquery-3.5.1.min.js and rename it as htdocs/js/jquery/jquery.js

Changes:

Loading