Closed sronsiek closed 2 years ago
Hello,
This project is currently transitioning to a new library I wrote: https://github.com/deltablot/malle/
It's still fresh but the core is working, and it will be maintained. At some point I'll officially declare jquery-jeditable as deprecated and focus on maintaining this new library.
It would be great if you could give malle
a try and let me know if some important bits are missing.
It is possible that you found a bug (thanks for the detailed report btw), but I'm not sure this will be fixed, for the reasons stated above.
I'm porting an app from jeditable 1.7.3 to 2.0.19
I'm using a number of selects, example options data looks like this:
Options like this:
Initial HTML like this:
What I've observed: In 1.7.3 everything works as expected. In 2.0.19, when I click on
Option #2
to open the select form, the selected option isNot Configured
when the expected value isOption #2
.I have done some debugging & found that in 1.7.3 there is a comparison between
$(this).text()
and$.trim(original.revert)
to set selected:... whereas in 2.0.19 the comparison is between
key
andString.prototype.trim.call(original.revert == null ? "" : original.revert)
:ie in the first case, the value from the options hash is used, in the second the key is used.
To test if this is really the issue, I changed the line:
to
Feels like a bug, though I'm not certain. In cases where keys and values are the same in the options, it would not show up ...
jQuery version: 1.11.1 Browser: chrome, firefox OS: SLES15 SP3