Ignore:
Timestamp:
2022-02-01T11:54:46+13:00 (2 years ago)
Author:
cstephen
Message:

Migrate to using jQuery3 and jQuery-UI-1.13.2; and integrate cookie consent manager

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/transform/depositor/de_page4.xsl

    r33755 r36027  
    1717            <xsl:text disable-output-escaping="yes">
    1818                {
    19                     $(window).load(function()
     19                    $(window).on("load", function()
    2020                    {
    2121                        $("#progressBar").html($("#progressBar").html() + "&lt;br/&gt;Moving file into collection...");
    2222                        var url = gs.xsltParams.library_name + "?a=de&amp;sa=depositFile&amp;ro=1&amp;c=" + gs.cgiParams.c + "&amp;fileToAdd=" + gs.deSavedMetadata["md___ex.Filename"];
    23                         $.ajax(url).success(function(response)
     23                        $.ajax(url).done(function(response)
    2424                        {
    2525                            $("#progressBar").html($("#progressBar").html() + "&lt;br/&gt;Importing collection...");
     
    4646                                        $("#progressBar").html($("#progressBar").html() + "&lt;br/&gt;Collection built...");
    4747                                        $("#progressBar").html($("#progressBar").html() + "&lt;br/&gt;Reloading Greenstone...");
    48                                         $.ajax(gs.xsltParams.library_name + "?a=s&amp;sa=c").success(function()
     48                                        $.ajax(gs.xsltParams.library_name + "?a=s&amp;sa=c").done(function()
    4949                                        {
    5050                                            $("#progressBar").html($("#progressBar").html() + "&lt;br/&gt;Done!");
    5151                                        })
    52                                         .error(function()
     52                                        .fail(function()
    5353                                        {
    5454                                            $("#progressBar").html($("#progressBar").html() + "&lt;br/&gt;Reload failed, please restart Greenstone manually.");
     
    7272    </xsl:template>
    7373</xsl:stylesheet> 
    74 
Note: See TracChangeset for help on using the changeset viewer.