Changeset 31955

Show
Ignore:
Timestamp:
08.09.2017 01:57:31 (2 weeks ago)
Author:
litvinovg
Message:

Prevent page from reloading on open same-section links

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/plugins/HTMLPlugin.pm

    r31765 r31955  
    11771177    my $self = shift(@_); 
    11781178    my ($href_part,$old_link,$identifier,$current_section,$target_section) = @_; 
    1179     if (length $target_section && $current_section ne $target_section){ 
     1179    if (length $target_section){ 
    11801180        return $href_part . "javascript:goToAnchor(\'" . $target_section . "\',\'" . $identifier . "\');" ;   
    11811181    }