- Timestamp:
- 2022-02-01T11:54:46+13:00 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/web/interfaces/default/transform/depositor/de_page4.xsl
r33755 r36027 17 17 <xsl:text disable-output-escaping="yes"> 18 18 { 19 $(window). load(function()19 $(window).on("load", function() 20 20 { 21 21 $("#progressBar").html($("#progressBar").html() + "<br/>Moving file into collection..."); 22 22 var url = gs.xsltParams.library_name + "?a=de&sa=depositFile&ro=1&c=" + gs.cgiParams.c + "&fileToAdd=" + gs.deSavedMetadata["md___ex.Filename"]; 23 $.ajax(url). success(function(response)23 $.ajax(url).done(function(response) 24 24 { 25 25 $("#progressBar").html($("#progressBar").html() + "<br/>Importing collection..."); … … 46 46 $("#progressBar").html($("#progressBar").html() + "<br/>Collection built..."); 47 47 $("#progressBar").html($("#progressBar").html() + "<br/>Reloading Greenstone..."); 48 $.ajax(gs.xsltParams.library_name + "?a=s&sa=c"). success(function()48 $.ajax(gs.xsltParams.library_name + "?a=s&sa=c").done(function() 49 49 { 50 50 $("#progressBar").html($("#progressBar").html() + "<br/>Done!"); 51 51 }) 52 . error(function()52 .fail(function() 53 53 { 54 54 $("#progressBar").html($("#progressBar").html() + "<br/>Reload failed, please restart Greenstone manually."); … … 72 72 </xsl:template> 73 73 </xsl:stylesheet> 74
Note:
See TracChangeset
for help on using the changeset viewer.