[jQuery] editable bug?
[jQuery] editable bug?
I'm seeing the onBlur get called when you've finished editing an
element by pressing enter and I click on another window. Can anyone
confirm this behaviour in Firefox 2 on Windows (Vista if that
matters)...
JS
<script type="text/javascript" src="../../jquery/jquery.js"></script>
<script type="text/javascript" src="../../jquery/jquery.editable.js"></
script>
<script type="text/javascript">
$(document).ready(function() {
$(".editable").editable("page-update.cfm?action=updatePageName", {
paramName: "pageName",
extraParams: {
pageID: 1
}
});
});
</script>
HTML
<div class="editable" id="editable-1">Edit me 1</div>
<div class="editable" id="editable-2">Edit me 2</div>
<div class="editable" id="editable-3">Edit me 3</div>
Follow these steps to see what I think is a bug:
1. Change page-update.cfm to your own script
2. pageID is specific to my example so ignore or change to suit your
script
3. Click on a div to edit it
4. Change the text
5. Press return/enter (check your DB if that's where you're storing
the data)
6. Click on another window other than the current browser
You should notice that the text reverts back to the original text as
if you had clicked away in the browser window and had not wished to
confirm your edit.
IE 7 on Vista works ok. A Firefox 2 problem prehaps?
Adrian