aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/notes.tpl
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-12-11 15:35:54 -0800
committerfriendica <info@friendica.com>2013-12-11 15:35:54 -0800
commit06c81e189f031a74c54aa14b1f29c93379e7cf3c (patch)
treea9ef109569e9bc55262ccfce7ebd326add474a71 /view/tpl/notes.tpl
parentd93ba783f54cf862bd91b231b7a9f7a19c657675 (diff)
parent1fa4133d430d2cb2753a9fd7e6bf9bfcdc35659b (diff)
downloadvolse-hubzilla-06c81e189f031a74c54aa14b1f29c93379e7cf3c.tar.gz
volse-hubzilla-06c81e189f031a74c54aa14b1f29c93379e7cf3c.tar.bz2
volse-hubzilla-06c81e189f031a74c54aa14b1f29c93379e7cf3c.zip
Merge pull request #239 from git-marijus/master
make empty notes saveable as well
Diffstat (limited to 'view/tpl/notes.tpl')
-rw-r--r--view/tpl/notes.tpl9
1 files changed, 3 insertions, 6 deletions
diff --git a/view/tpl/notes.tpl b/view/tpl/notes.tpl
index 7300779f4..09932e545 100644
--- a/view/tpl/notes.tpl
+++ b/view/tpl/notes.tpl
@@ -1,13 +1,10 @@
<div class="widget">
<script>
-function notePost() {
- $('#note-rotator').spin('tiny');
- $.post('notes', { 'note_text' : $('#note-text').val() },function(data) { $('#note-rotator').spin(false); });
-}
+$("#note-text").live('input paste',function(e){
+ $.post('notes', { 'note_text' : $('#note-text').val() });
+});
</script>
<h3>{{$banner}}</h3>
<textarea name="note_text" id="note-text">{{$text}}</textarea>
-<input type="submit" name="submit" id="note-save" value="{{$save}}" onclick="notePost(); return true;">
-<div id="note-rotator"></div>
</div>