notes widget: jquery.live is deprecated, replacing with jquery.on and binding to focusout, as the input and paste callbacks are a bit wasteful - they are presumably called on every character typed, yet some of these events have gone missing (probably due to having a lot of network calls in quick succession) so hopefully a single save of the workspace on focusout should be more reliable.
This commit is contained in:
parent
b00478d3b5
commit
ac91331c18
@ -1,6 +1,6 @@
|
||||
<div class="widget">
|
||||
<script>
|
||||
$("#note-text").live('input paste',function(e){
|
||||
$(document).on('focusout',"#note-text",function(e){
|
||||
$.post('notes', { 'note_text' : $('#note-text').val() });
|
||||
});
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user