forked from Wavyzz/dolibarr
FIX Fix the reposition on the clear target button.
This commit is contained in:
@@ -5329,6 +5329,7 @@ function printCommonFooter($zone='private')
|
||||
print "\n";
|
||||
if (! empty($conf->use_javascript_ajax))
|
||||
{
|
||||
print '<!-- Reposition management (does not work if a redirect is done after action of submission) -->'."\n";
|
||||
print '<script type="text/javascript" language="javascript">jQuery(document).ready(function() {'."\n";
|
||||
|
||||
print '<!-- If page_y set, we set scollbar with it -->'."\n";
|
||||
@@ -5338,7 +5339,7 @@ function printCommonFooter($zone='private')
|
||||
print '<!-- Set handler to add page_y param on some a href links -->'."\n";
|
||||
print 'jQuery(".reposition").click(function() {
|
||||
var page_y = $(document).scrollTop();
|
||||
/* alert(page_y); */
|
||||
/*alert(page_y);*/
|
||||
this.href=this.href+\'&page_y=\'+page_y;
|
||||
});'."\n";
|
||||
print '});'."\n";
|
||||
|
||||
Reference in New Issue
Block a user