Fossil SCM
Avoided a divide by 1000 by changing a value formerly specified in floating point seconds to be specified in milliseconds, so we don't need the arithmetic.
Commit
1d5eea6669af52b3784de69293e05e8d99c520ad2fa70ae25db15c8c25c4cfd8
Parent
56db6170e8da959…
1 file changed
+2
-2
+2
-2
| --- skins/default/js.txt | ||
| +++ skins/default/js.txt | ||
| @@ -96,12 +96,12 @@ | ||
| 96 | 96 | if (animate) { |
| 97 | 97 | // Set up a CSS transition to animate the panel open and |
| 98 | 98 | // closed. Only needs to be done once per page load. |
| 99 | 99 | // Based on https://stackoverflow.com/a/29047447/142454 |
| 100 | 100 | calculatePanelHeight(); |
| 101 | - panel.style.transition = 'max-height ' + | |
| 102 | - (animMS / 1000) + 's ease-in-out'; | |
| 101 | + panel.style.transition = 'max-height ' + animMS + | |
| 102 | + 'ms ease-in-out'; | |
| 103 | 103 | panel.style.overflowY = 'hidden'; |
| 104 | 104 | panel.style.maxHeight = '0'; |
| 105 | 105 | showPanel(); |
| 106 | 106 | } |
| 107 | 107 | panel.style.display = 'block'; |
| 108 | 108 |
| --- skins/default/js.txt | |
| +++ skins/default/js.txt | |
| @@ -96,12 +96,12 @@ | |
| 96 | if (animate) { |
| 97 | // Set up a CSS transition to animate the panel open and |
| 98 | // closed. Only needs to be done once per page load. |
| 99 | // Based on https://stackoverflow.com/a/29047447/142454 |
| 100 | calculatePanelHeight(); |
| 101 | panel.style.transition = 'max-height ' + |
| 102 | (animMS / 1000) + 's ease-in-out'; |
| 103 | panel.style.overflowY = 'hidden'; |
| 104 | panel.style.maxHeight = '0'; |
| 105 | showPanel(); |
| 106 | } |
| 107 | panel.style.display = 'block'; |
| 108 |
| --- skins/default/js.txt | |
| +++ skins/default/js.txt | |
| @@ -96,12 +96,12 @@ | |
| 96 | if (animate) { |
| 97 | // Set up a CSS transition to animate the panel open and |
| 98 | // closed. Only needs to be done once per page load. |
| 99 | // Based on https://stackoverflow.com/a/29047447/142454 |
| 100 | calculatePanelHeight(); |
| 101 | panel.style.transition = 'max-height ' + animMS + |
| 102 | 'ms ease-in-out'; |
| 103 | panel.style.overflowY = 'hidden'; |
| 104 | panel.style.maxHeight = '0'; |
| 105 | showPanel(); |
| 106 | } |
| 107 | panel.style.display = 'block'; |
| 108 |