sS js_redirectAutoScroll() { ret [[if (window.scrollY != 0) { $("input[name=redirect], input[name=redirectAfterSave]").each(function() { $(this).val($(this).val().replace(/(#.+?)$/ + "#scrollTo" + Math.round(window.scrollY)); }); }]]; }
Began life as a copy of #1031035
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1031036 |
Snippet name: | js_redirectAutoScroll |
Eternal ID of this version: | #1031036/6 |
Text MD5: | e7ca99d027d56eccdcc3855440d6925a |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-04-29 22:22:51 |
Source code size: | 240 bytes / 3 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 167 / 200 |
Version history: | 5 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1031071 - js_redirectAutoScroll2 |