diff options
author | friendica <info@friendica.com> | 2013-12-09 15:27:46 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-12-09 15:27:46 -0800 |
commit | f85cba10eb3d976d715c7a80fe69fe15d9dc468c (patch) | |
tree | 45280620e820e72a9a1876fada5333f4d8b5d35c /view | |
parent | b5f73d01c57bce1758eb7abd3ede327218be5404 (diff) | |
download | volse-hubzilla-f85cba10eb3d976d715c7a80fe69fe15d9dc468c.tar.gz volse-hubzilla-f85cba10eb3d976d715c7a80fe69fe15d9dc468c.tar.bz2 volse-hubzilla-f85cba10eb3d976d715c7a80fe69fe15d9dc468c.zip |
notes widget
Diffstat (limited to 'view')
-rw-r--r-- | view/theme/redbasic/css/style.css | 9 | ||||
-rw-r--r-- | view/tpl/notes.tpl | 13 |
2 files changed, 21 insertions, 1 deletions
diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css index 14a708e55..31aa45995 100644 --- a/view/theme/redbasic/css/style.css +++ b/view/theme/redbasic/css/style.css @@ -2985,4 +2985,11 @@ img.mail-list-sender-photo { .comment-edit-text-full { color: black; } -.suggest-widget-more { margin-top: 10px; }
\ No newline at end of file +.suggest-widget-more { margin-top: 10px; } + +#note-text { + width: 190px; + max-width: 190px; + height: 150px; +} +#note-save { margin-top: 10px; }
\ No newline at end of file diff --git a/view/tpl/notes.tpl b/view/tpl/notes.tpl new file mode 100644 index 000000000..7300779f4 --- /dev/null +++ b/view/tpl/notes.tpl @@ -0,0 +1,13 @@ +<div class="widget"> +<script> +function notePost() { + $('#note-rotator').spin('tiny'); + $.post('notes', { 'note_text' : $('#note-text').val() },function(data) { $('#note-rotator').spin(false); }); +} +</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> |