Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorVinzenz <vinzenz.rosenkranz@gmail.com>2016-02-21 15:21:03 +0300
committerVinzenz <vinzenz.rosenkranz@gmail.com>2016-02-21 15:21:03 +0300
commit1b9a027107db8897c775062e2198aa8dffac01f4 (patch)
tree8c9333a205b37343f074d28fd79bbbc102563382 /js
parent7e850e7315e346519d81374edfa2144dcce45b72 (diff)
minor fixes0.6.9.1
Diffstat (limited to 'js')
-rw-r--r--js/create_edit.js20
-rw-r--r--js/vote.js4
2 files changed, 12 insertions, 12 deletions
diff --git a/js/create_edit.js b/js/create_edit.js
index fbe380cf..e7849dec 100644
--- a/js/create_edit.js
+++ b/js/create_edit.js
@@ -161,6 +161,8 @@ $(document).ready(function () {
$(document).on('click', '.icon-close', function(e) {
$(this).removeClass('icon-close');
$(this).addClass('icon-checkmark');
+ $(this).removeClass('date-text-not-selected');
+ $(this).addClass('date-text-selected');
if($(this).attr('class').indexOf('is-text') > -1) {
var id = $(this).attr('id');
g_chosen_texts.push(id.substring(id.indexOf('_') + 1));
@@ -174,6 +176,8 @@ $(document).ready(function () {
$(document).on('click', '.icon-checkmark', function(e) {
$(this).removeClass('icon-checkmark');
$(this).addClass('icon-close');
+ $(this).removeClass('date-text-selected');
+ $(this).addClass('date-text-not-selected');
if($(this).attr('class').indexOf('is-text') > -1) {
var id = $(this).attr('id');
var index = g_chosen_texts.indexOf(id.substring(id.indexOf('_') + 1));
@@ -297,8 +301,8 @@ function insertText(text, set=false) {
td.innerHTML = text;
td.className = 'text-row';
td = tr.insertCell(-1);
- if(set) td.className = 'icon-checkmark is-text';
- else td.className = 'icon-close is-text';
+ if(set) td.className = 'icon-checkmark is-text date-text-selected';
+ else td.className = 'icon-close is-text date-text-not-selected';
td.id = 'text_' + text;
}
@@ -328,8 +332,8 @@ function addRowToList(ts, text, timeTs=-1) {
for(var j=1; j<rows[0].cells.length; j++) {
var tdId = rows[0].cells[j].id;
var td = tr.insertCell(-1);
- if(timeTs == tdId) td.className = 'icon-checkmark';
- else td.className = 'icon-close';
+ if(timeTs == tdId) td.className = 'icon-checkmark date-text-selected';
+ else td.className = 'icon-close date-text-not-selected';
td.id = tdId;
td.innerHTML = '';
}
@@ -344,8 +348,8 @@ function addRowToList(ts, text, timeTs=-1) {
for(var j=1; j<rows[0].cells.length; j++) {
var tdId = rows[0].cells[j].id;
var td = tr.insertCell(-1);
- if(timeTs == tdId) td.className = 'icon-checkmark';
- else td.className = 'icon-close';
+ if(timeTs == tdId) td.className = 'icon-checkmark date-text-selected';
+ else td.className = 'icon-close date-text-not-selected';
td.id = tdId;
td.innerHTML = '';
}
@@ -383,8 +387,8 @@ function addColToList(ts, text, dateTs=-1) {
td.className = 'date-col';
} else {
td.innerHTML = '';
- if(row.id == dateTs) td.className = 'icon-checkmark';
- else td.className = 'icon-close';
+ if(row.id == dateTs) td.className = 'icon-checkmark date-text-selected';
+ else td.className = 'icon-close date-text-not-selected';
}
td.id = ts;
}
diff --git a/js/vote.js b/js/vote.js
index 8bde3e15..b5a6cb06 100644
--- a/js/vote.js
+++ b/js/vote.js
@@ -66,7 +66,6 @@ $(document).on('click', '.poll-cell-active-un', function(e) {
newUserDates.push(ts);
newUserTypes.push(2);
$(this).switchClass('poll-cell-active-un', 'poll-cell-active-maybe');
- $(this).switchClass('icon-info', 'icon-more');
});
$(document).on('click', '.poll-cell-active-not', function(e) {
@@ -82,7 +81,6 @@ $(document).on('click', '.poll-cell-active-not', function(e) {
var total_no = document.getElementById('id_n_' + ts);
total_no.innerHTML = parseInt(total_no.innerHTML) - 1;
$(this).switchClass('poll-cell-active-not', 'poll-cell-active-maybe');
- $(this).switchClass('icon-close', 'icon-more');
findNewMaxCount();
updateStrongCounts();
});
@@ -100,7 +98,6 @@ $(document).on('click', '.poll-cell-active-maybe', function(e) {
var total_yes = document.getElementById('id_y_' + ts);
total_yes.innerHTML = parseInt(total_yes.innerHTML) + 1;
$(this).switchClass('poll-cell-active-maybe', 'poll-cell-active-is');
- $(this).switchClass('icon-more', 'icon-checkmark');
findNewMaxCount();
updateStrongCounts();
});
@@ -120,7 +117,6 @@ $(document).on('click', '.poll-cell-active-is', function(e) {
total_yes.innerHTML = parseInt(total_yes.innerHTML) - 1;
total_no.innerHTML = parseInt(total_no.innerHTML) + 1;
$(this).switchClass('poll-cell-active-is', 'poll-cell-active-not');
- $(this).switchClass('icon-checkmark', 'icon-close');
findNewMaxCount();
updateStrongCounts();
});