Changeset 23821

Show
Ignore:
Timestamp:
27.03.2011 22:34:51 (8 years ago)
Author:
davidb
Message:

Updated test.js to fix an issue with a static URL when using client-side XSLT and AJAX document fetching within documents.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/test.js

    r23786 r23821  
    379379    $.get(url, function(data) { 
    380380     
    381        $.get('http://localhost:8080/greenstone3/interfaces/default/transform/document_text.xsl', function(text) { 
     381       gsurl = $($(data).find("metadata[name=siteURL]")[0]).text(); 
     382     
     383       $.get(gsurl + '/interfaces/default/transform/document_text.xsl', function(text) { 
    382384        
    383385       var output = '';