Changeset 31955


Ignore:
Timestamp:
2017-09-08T01:57:31+12:00 (7 years ago)
Author:
Georgiy Litvinov
Message:

Prevent page from reloading on open same-section links

File:
1 edited

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    }
Note: See TracChangeset for help on using the changeset viewer.