From ebf5c274533f389fe1dcfc90e32708c9de6a2989 Mon Sep 17 00:00:00 2001 From: ansuz Date: Sat, 16 Jul 2016 12:37:17 +0200 Subject: [PATCH] add rename and forget buttons to poll app --- www/poll/index.html | 4 +++- www/poll/main.js | 56 +++++++++++++++++++++++++++++++++++++++++---- 2 files changed, 54 insertions(+), 6 deletions(-) diff --git a/www/poll/index.html b/www/poll/index.html index 45e69b10f..8c5ce95f0 100644 --- a/www/poll/index.html +++ b/www/poll/index.html @@ -22,7 +22,9 @@
-

⇐ back to Cryptpad

+
+ +

CryptPoll

Schedule or vote in real time

diff --git a/www/poll/main.js b/www/poll/main.js index 7c8cbe29c..459f39f3a 100644 --- a/www/poll/main.js +++ b/www/poll/main.js @@ -14,10 +14,6 @@ define([ var $ = window.jQuery; /* TODO - * design a data structure for a collaborative date picker - * add new input fields to the interface when they are found in the object - but do not exist locally - * set range of dates/times * (pair of date pickers) * hide options within that range @@ -25,7 +21,9 @@ define([ * add notes to a particular time slot * check or uncheck options for a particular user - * mark preference level? + * mark preference level? (+1, 0, -1) + + * delete/hide columns/rows // let users choose what they want the default input to be... @@ -289,6 +287,54 @@ define([ var title = document.title = Cryptpad.getPadTitle(); Cryptpad.rememberPad(title); Cryptpad.styleAlerts(); + + + var $toolbar = $('#toolbar'); + + $toolbar.find('sub a').text('⇐ back to Cryptpad'); + + var Button = function (opt) { + return $('