shimmie2 icon indicating copy to clipboard operation
shimmie2 copied to clipboard

Changing default values for "Image Controls"

Open MetallicAchu opened this issue 4 years ago • 2 comments

I'm sorry to ask such a stupid question... But I really tried my best to find the piece of code that controls the default values of Image Control block, and couldn't find it

image

MetallicAchu avatar May 13 '20 06:05 MetallicAchu

The default value isn't stored anywhere at the start, it just defaults to "Full Size". Once the option has been changed the value is stored in a cookie in the user's browser. When the user visits a subsequent image it just loads the value saved in the cookie. The cookie and zoom operation is done in ext/handle_pixel/script.js

sanmadjack avatar May 28 '20 13:05 sanmadjack

Thank you. So the first value is set as default?

MetallicAchu avatar May 29 '20 16:05 MetallicAchu