Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Commit

Permalink
#!watch appended on all links
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaz3e committed Jul 20, 2015
1 parent 5d3e50e commit c91a874
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions s3tools/s3_header_fixed.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,23 @@
// restricted access
defined('_JEXEC') or die;

// Less Development Mode
if($this->params->get('developmentMode')): ?>

<script type="text/javascript">
var querystring = '!watch';

$('a').each(function()
{
var href = $(this).attr('href');
href += (href.match(/\?/) ? '&' : '#') + querystring;
$(this).attr('href', href);
});
</script>
<?php endif; ?>

<?php

/**
* Fixed header on scroll up/down slide up/down
* hide/show Header and Menu on scroll up/down
Expand Down

0 comments on commit c91a874

Please sign in to comment.