Changeset 32466 for main

Show
Ignore:
Timestamp:
18.09.2018 11:11:33 (9 months ago)
Author:
kjdon
Message:

only show disable/enable editing button in the user menu when we are on a document page, as that is the only place it currently makes sense.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/transform/layouts/header.xsl

    r32460 r32466  
    386386    menu.append(settingsLink); 
    387387     
    388     </xsl:text><xsl:if test="$isEditingAvailable = '1'"><xsl:text disable-output-escaping="yes"> 
     388    </xsl:text><xsl:if test="$isEditingAvailable = '1' and /page/pageRequest/@action = 'd'"><xsl:text disable-output-escaping="yes"> 
    389389    var editingLink = $("&lt;a&gt;") 
    390390    .attr("href", "javascript:;"); 
     
    399399    .success(function(response) 
    400400    { 
    401     location.reload(); 
     401    location.reload(true); 
    402402    }); 
    403403    });