mirror of
https://github.com/Dvorinka/PPve.git
synced 2026-06-05 04:52:58 +00:00
r
This commit is contained in:
@@ -1654,15 +1654,10 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||||||
const position = btn.dataset.position;
|
const position = btn.dataset.position;
|
||||||
currentImagePosition = position;
|
currentImagePosition = position;
|
||||||
|
|
||||||
// Update hidden input field
|
|
||||||
document.getElementById('imagePosition').value = position;
|
|
||||||
|
|
||||||
// Reset position values if not custom
|
// Reset position values if not custom
|
||||||
if (position !== 'custom') {
|
if (position !== 'custom') {
|
||||||
currentImageX = '0';
|
currentImageX = '0';
|
||||||
currentImageY = '0';
|
currentImageY = '0';
|
||||||
document.getElementById('imagePositionX').value = '0';
|
|
||||||
document.getElementById('imagePositionY').value = '0';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update active button styling
|
// Update active button styling
|
||||||
|
|||||||
Reference in New Issue
Block a user