jquery-phoenix icon indicating copy to clipboard operation
jquery-phoenix copied to clipboard

Expire saved data

Open foamrider opened this issue 9 years ago • 5 comments

Hi

Could there be a parameter for how long the saved data is valid, and if it is expired, removes it?

foamrider avatar Oct 09 '15 06:10 foamrider

+1

martinschilliger avatar Apr 05 '16 06:04 martinschilliger

@martinschilliger seems like it hasn't been developed in some time. Meanwhile, I have added this in my PR, https://github.com/drtomasso/jquery-phoenix

foamrider avatar Apr 05 '16 13:04 foamrider

Thank you @drtomasso! One thing I don't understand why, but when I use your code the selection of an option-tag doesn't get stored. Any idea where to look for? EDIT: Just found out, it just doesn't work if the element has an optgroup. With the original jquery-phoenix.js it works…

martinschilliger avatar Apr 11 '16 13:04 martinschilliger

Optgroup works fine for me. Could you add some code of your option-tag problem? Both html and js

foamrider avatar Apr 12 '16 05:04 foamrider

Found it out: The problem was a <select> which didn't had value="foo" set. You have to write value="foo", otherways phoenix doesn't see it.

martinschilliger avatar May 09 '16 08:05 martinschilliger