aboutsummaryrefslogtreecommitdiffstats
path: root/view/js/main.js
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-01-31 10:34:55 +0100
committerMario <mario@mariovavti.com>2020-01-31 10:34:55 +0100
commit69b25e490e5effba78fcdd9fb991fe71b7523138 (patch)
treebed30f592e179da1a842114370bdd402cafb2495 /view/js/main.js
parentc50a311ff32d7361d0809d87b03be1b4ec25b783 (diff)
parentb8d7647c48f9683909476d14c6f94195980b15a2 (diff)
downloadvolse-hubzilla-69b25e490e5effba78fcdd9fb991fe71b7523138.tar.gz
volse-hubzilla-69b25e490e5effba78fcdd9fb991fe71b7523138.tar.bz2
volse-hubzilla-69b25e490e5effba78fcdd9fb991fe71b7523138.zip
Merge branch 'dev' into 'dev'
polls and other backend z6 compat work See merge request hubzilla/core!1825
Diffstat (limited to 'view/js/main.js')
-rw-r--r--view/js/main.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/view/js/main.js b/view/js/main.js
index 4ec7a71aa..e735e9d6b 100644
--- a/view/js/main.js
+++ b/view/js/main.js
@@ -1267,6 +1267,20 @@ function filestorage(event, nick, id) {
});
}
+function submitPoll(id) {
+
+ $.post('vote/' + id,
+ $('#question-form-' + id).serialize(),
+ function(data) {
+ $.jGrowl(data.message, { sticky: false, theme: ((data.success) ? 'info' : 'notice'), life: 10000 });
+ if(timer) clearTimeout(timer);
+ timer = setTimeout(updateInit,1500);
+ }
+ );
+
+}
+
+
function post_comment(id) {
unpause();
commentBusy = true;