The story
Probably an allusion to the flirtatious practice by some young women, especially in the first half of the twentieth century, of raising a long skirt sufficiently to reveal a bare ankle but no more than that.
Etymology from Wiktionary, CC BY-SA 4.0.