aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/notes.tpl
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-03-30 17:37:12 -0700
committerfriendica <info@friendica.com>2014-03-30 17:37:12 -0700
commitac91331c18717642915cbb53e2d91dd0d010f231 (patch)
tree7173f58bd1bf3da5fa269b7920cb0be0242612b6 /view/tpl/notes.tpl
parentb00478d3b5e6d12e2c726fbdde931b5e64ad5da9 (diff)
downloadvolse-hubzilla-ac91331c18717642915cbb53e2d91dd0d010f231.tar.gz
volse-hubzilla-ac91331c18717642915cbb53e2d91dd0d010f231.tar.bz2
volse-hubzilla-ac91331c18717642915cbb53e2d91dd0d010f231.zip
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.
Diffstat (limited to 'view/tpl/notes.tpl')
-rw-r--r--view/tpl/notes.tpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/view/tpl/notes.tpl b/view/tpl/notes.tpl
index 09932e545..b67f66f5b 100644
--- a/view/tpl/notes.tpl
+++ b/view/tpl/notes.tpl
@@ -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>