|
@@ -323,7 +323,8 @@ BlazeComponent.extendComponent({
|
|
'click .js-close-card-details'() {
|
|
'click .js-close-card-details'() {
|
|
Utils.goBoardId(this.data().boardId);
|
|
Utils.goBoardId(this.data().boardId);
|
|
},
|
|
},
|
|
- 'click .js-copy-link'() {
|
|
|
|
|
|
+ 'click .js-copy-link'(event) {
|
|
|
|
+ event.preventDefault();
|
|
const StringToCopyElement = document.getElementById('cardURL_copy');
|
|
const StringToCopyElement = document.getElementById('cardURL_copy');
|
|
StringToCopyElement.value =
|
|
StringToCopyElement.value =
|
|
window.location.origin + window.location.pathname;
|
|
window.location.origin + window.location.pathname;
|
|
@@ -680,6 +681,7 @@ Template.cardDetailsActionsPopup.events({
|
|
.map((c) => c.sort),
|
|
.map((c) => c.sort),
|
|
);
|
|
);
|
|
this.move(this.boardId, this.swimlaneId, this.listId, minOrder - 1);
|
|
this.move(this.boardId, this.swimlaneId, this.listId, minOrder - 1);
|
|
|
|
+ Popup.back();
|
|
},
|
|
},
|
|
'click .js-move-card-to-bottom'(event) {
|
|
'click .js-move-card-to-bottom'(event) {
|
|
event.preventDefault();
|
|
event.preventDefault();
|
|
@@ -691,7 +693,7 @@ Template.cardDetailsActionsPopup.events({
|
|
this.move(this.boardId, this.swimlaneId, this.listId, maxOrder + 1);
|
|
this.move(this.boardId, this.swimlaneId, this.listId, maxOrder + 1);
|
|
},
|
|
},
|
|
'click .js-archive': Popup.afterConfirm('cardArchive', function () {
|
|
'click .js-archive': Popup.afterConfirm('cardArchive', function () {
|
|
- Popup.close();
|
|
|
|
|
|
+ Popup.back();
|
|
this.archive();
|
|
this.archive();
|
|
Utils.goBoardId(this.boardId);
|
|
Utils.goBoardId(this.boardId);
|
|
}),
|
|
}),
|
|
@@ -700,7 +702,7 @@ Template.cardDetailsActionsPopup.events({
|
|
const currentCard = this;
|
|
const currentCard = this;
|
|
const level = currentCard.findWatcher(Meteor.userId()) ? null : 'watching';
|
|
const level = currentCard.findWatcher(Meteor.userId()) ? null : 'watching';
|
|
Meteor.call('watch', 'card', currentCard._id, level, (err, ret) => {
|
|
Meteor.call('watch', 'card', currentCard._id, level, (err, ret) => {
|
|
- if (!err && ret) Popup.close();
|
|
|
|
|
|
+ if (!err && ret) Popup.back();
|
|
});
|
|
});
|
|
},
|
|
},
|
|
});
|
|
});
|
|
@@ -819,7 +821,13 @@ Template.moveCardPopup.events({
|
|
const slSelect = $('.js-select-swimlanes')[0];
|
|
const slSelect = $('.js-select-swimlanes')[0];
|
|
const swimlaneId = slSelect.options[slSelect.selectedIndex].value;
|
|
const swimlaneId = slSelect.options[slSelect.selectedIndex].value;
|
|
card.move(boardId, swimlaneId, listId, 0);
|
|
card.move(boardId, swimlaneId, listId, 0);
|
|
- Popup.close();
|
|
|
|
|
|
+
|
|
|
|
+ // set new id's to card object in case the card is moved to top by the comment "moveCard" after this command (.js-move-card)
|
|
|
|
+ this.boardId = boardId;
|
|
|
|
+ this.swimlaneId = swimlaneId;
|
|
|
|
+ this.listId = listId;
|
|
|
|
+
|
|
|
|
+ Popup.back();
|
|
},
|
|
},
|
|
});
|
|
});
|
|
BlazeComponent.extendComponent({
|
|
BlazeComponent.extendComponent({
|
|
@@ -887,7 +895,7 @@ Template.copyCardPopup.events({
|
|
// See https://github.com/wekan/wekan/issues/80
|
|
// See https://github.com/wekan/wekan/issues/80
|
|
Filter.addException(_id);
|
|
Filter.addException(_id);
|
|
|
|
|
|
- Popup.close();
|
|
|
|
|
|
+ Popup.back();
|
|
}
|
|
}
|
|
},
|
|
},
|
|
});
|
|
});
|
|
@@ -914,7 +922,7 @@ Template.convertChecklistItemToCardPopup.events({
|
|
});
|
|
});
|
|
Filter.addException(_id);
|
|
Filter.addException(_id);
|
|
|
|
|
|
- Popup.close();
|
|
|
|
|
|
+ Popup.back();
|
|
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -970,7 +978,7 @@ Template.copyChecklistToManyCardsPopup.events({
|
|
cmt.copy(_id);
|
|
cmt.copy(_id);
|
|
});
|
|
});
|
|
}
|
|
}
|
|
- Popup.close();
|
|
|
|
|
|
+ Popup.back();
|
|
}
|
|
}
|
|
},
|
|
},
|
|
});
|
|
});
|
|
@@ -1000,11 +1008,11 @@ BlazeComponent.extendComponent({
|
|
},
|
|
},
|
|
'click .js-submit'() {
|
|
'click .js-submit'() {
|
|
this.currentCard.setColor(this.currentColor.get());
|
|
this.currentCard.setColor(this.currentColor.get());
|
|
- Popup.close();
|
|
|
|
|
|
+ Popup.back();
|
|
},
|
|
},
|
|
'click .js-remove-color'() {
|
|
'click .js-remove-color'() {
|
|
this.currentCard.setColor(null);
|
|
this.currentCard.setColor(null);
|
|
- Popup.close();
|
|
|
|
|
|
+ Popup.back();
|
|
},
|
|
},
|
|
},
|
|
},
|
|
];
|
|
];
|
|
@@ -1106,7 +1114,7 @@ BlazeComponent.extendComponent({
|
|
}
|
|
}
|
|
},
|
|
},
|
|
'click .js-delete': Popup.afterConfirm('cardDelete', function () {
|
|
'click .js-delete': Popup.afterConfirm('cardDelete', function () {
|
|
- Popup.close();
|
|
|
|
|
|
+ Popup.back();
|
|
// verify that there are no linked cards
|
|
// verify that there are no linked cards
|
|
if (Cards.find({ linkedId: this._id }).count() === 0) {
|
|
if (Cards.find({ linkedId: this._id }).count() === 0) {
|
|
Cards.remove(this._id);
|
|
Cards.remove(this._id);
|
|
@@ -1173,12 +1181,12 @@ BlazeComponent.extendComponent({
|
|
if (endString) {
|
|
if (endString) {
|
|
this.currentCard.setVoteEnd(endString);
|
|
this.currentCard.setVoteEnd(endString);
|
|
}
|
|
}
|
|
- Popup.close();
|
|
|
|
|
|
+ Popup.back();
|
|
},
|
|
},
|
|
'click .js-remove-vote': Popup.afterConfirm('deleteVote', () => {
|
|
'click .js-remove-vote': Popup.afterConfirm('deleteVote', () => {
|
|
event.preventDefault();
|
|
event.preventDefault();
|
|
this.currentCard.unsetVote();
|
|
this.currentCard.unsetVote();
|
|
- Popup.close();
|
|
|
|
|
|
+ Popup.back();
|
|
}),
|
|
}),
|
|
'click a.js-toggle-vote-public'(event) {
|
|
'click a.js-toggle-vote-public'(event) {
|
|
event.preventDefault();
|
|
event.preventDefault();
|
|
@@ -1218,7 +1226,7 @@ BlazeComponent.extendComponent({
|
|
// if active vote - store it
|
|
// if active vote - store it
|
|
if (this.currentData().getVoteQuestion()) {
|
|
if (this.currentData().getVoteQuestion()) {
|
|
this._storeDate(newDate.toDate());
|
|
this._storeDate(newDate.toDate());
|
|
- Popup.close();
|
|
|
|
|
|
+ Popup.back();
|
|
} else {
|
|
} else {
|
|
this.currentData().vote = { end: newDate.toDate() }; // set vote end temp
|
|
this.currentData().vote = { end: newDate.toDate() }; // set vote end temp
|
|
Popup.back();
|
|
Popup.back();
|
|
@@ -1252,86 +1260,77 @@ BlazeComponent.extendComponent({
|
|
// if active poker - store it
|
|
// if active poker - store it
|
|
if (this.currentData().getPokerQuestion()) {
|
|
if (this.currentData().getPokerQuestion()) {
|
|
this._storeDate(usaDate.toDate());
|
|
this._storeDate(usaDate.toDate());
|
|
- Popup.close();
|
|
|
|
} else {
|
|
} else {
|
|
this.currentData().poker = { end: usaDate.toDate() }; // set poker end temp
|
|
this.currentData().poker = { end: usaDate.toDate() }; // set poker end temp
|
|
- Popup.back();
|
|
|
|
}
|
|
}
|
|
|
|
+ Popup.back();
|
|
} else if (euroAmDate.isValid()) {
|
|
} else if (euroAmDate.isValid()) {
|
|
// if active poker - store it
|
|
// if active poker - store it
|
|
if (this.currentData().getPokerQuestion()) {
|
|
if (this.currentData().getPokerQuestion()) {
|
|
this._storeDate(euroAmDate.toDate());
|
|
this._storeDate(euroAmDate.toDate());
|
|
- Popup.close();
|
|
|
|
} else {
|
|
} else {
|
|
this.currentData().poker = { end: euroAmDate.toDate() }; // set poker end temp
|
|
this.currentData().poker = { end: euroAmDate.toDate() }; // set poker end temp
|
|
- Popup.back();
|
|
|
|
}
|
|
}
|
|
|
|
+ Popup.back();
|
|
} else if (euro24hDate.isValid()) {
|
|
} else if (euro24hDate.isValid()) {
|
|
// if active poker - store it
|
|
// if active poker - store it
|
|
if (this.currentData().getPokerQuestion()) {
|
|
if (this.currentData().getPokerQuestion()) {
|
|
this._storeDate(euro24hDate.toDate());
|
|
this._storeDate(euro24hDate.toDate());
|
|
this.card.setPokerEnd(euro24hDate.toDate());
|
|
this.card.setPokerEnd(euro24hDate.toDate());
|
|
- Popup.close();
|
|
|
|
} else {
|
|
} else {
|
|
this.currentData().poker = { end: euro24hDate.toDate() }; // set poker end temp
|
|
this.currentData().poker = { end: euro24hDate.toDate() }; // set poker end temp
|
|
- Popup.back();
|
|
|
|
}
|
|
}
|
|
|
|
+ Popup.back();
|
|
} else if (eurodotDate.isValid()) {
|
|
} else if (eurodotDate.isValid()) {
|
|
// if active poker - store it
|
|
// if active poker - store it
|
|
if (this.currentData().getPokerQuestion()) {
|
|
if (this.currentData().getPokerQuestion()) {
|
|
this._storeDate(eurodotDate.toDate());
|
|
this._storeDate(eurodotDate.toDate());
|
|
this.card.setPokerEnd(eurodotDate.toDate());
|
|
this.card.setPokerEnd(eurodotDate.toDate());
|
|
- Popup.close();
|
|
|
|
} else {
|
|
} else {
|
|
this.currentData().poker = { end: eurodotDate.toDate() }; // set poker end temp
|
|
this.currentData().poker = { end: eurodotDate.toDate() }; // set poker end temp
|
|
- Popup.back();
|
|
|
|
}
|
|
}
|
|
|
|
+ Popup.back();
|
|
} else if (minusDate.isValid()) {
|
|
} else if (minusDate.isValid()) {
|
|
// if active poker - store it
|
|
// if active poker - store it
|
|
if (this.currentData().getPokerQuestion()) {
|
|
if (this.currentData().getPokerQuestion()) {
|
|
this._storeDate(minusDate.toDate());
|
|
this._storeDate(minusDate.toDate());
|
|
this.card.setPokerEnd(minusDate.toDate());
|
|
this.card.setPokerEnd(minusDate.toDate());
|
|
- Popup.close();
|
|
|
|
} else {
|
|
} else {
|
|
this.currentData().poker = { end: minusDate.toDate() }; // set poker end temp
|
|
this.currentData().poker = { end: minusDate.toDate() }; // set poker end temp
|
|
- Popup.back();
|
|
|
|
}
|
|
}
|
|
|
|
+ Popup.back();
|
|
} else if (slashDate.isValid()) {
|
|
} else if (slashDate.isValid()) {
|
|
// if active poker - store it
|
|
// if active poker - store it
|
|
if (this.currentData().getPokerQuestion()) {
|
|
if (this.currentData().getPokerQuestion()) {
|
|
this._storeDate(slashDate.toDate());
|
|
this._storeDate(slashDate.toDate());
|
|
this.card.setPokerEnd(slashDate.toDate());
|
|
this.card.setPokerEnd(slashDate.toDate());
|
|
- Popup.close();
|
|
|
|
} else {
|
|
} else {
|
|
this.currentData().poker = { end: slashDate.toDate() }; // set poker end temp
|
|
this.currentData().poker = { end: slashDate.toDate() }; // set poker end temp
|
|
- Popup.back();
|
|
|
|
}
|
|
}
|
|
|
|
+ Popup.back();
|
|
} else if (dotDate.isValid()) {
|
|
} else if (dotDate.isValid()) {
|
|
// if active poker - store it
|
|
// if active poker - store it
|
|
if (this.currentData().getPokerQuestion()) {
|
|
if (this.currentData().getPokerQuestion()) {
|
|
this._storeDate(dotDate.toDate());
|
|
this._storeDate(dotDate.toDate());
|
|
this.card.setPokerEnd(dotDate.toDate());
|
|
this.card.setPokerEnd(dotDate.toDate());
|
|
- Popup.close();
|
|
|
|
} else {
|
|
} else {
|
|
this.currentData().poker = { end: dotDate.toDate() }; // set poker end temp
|
|
this.currentData().poker = { end: dotDate.toDate() }; // set poker end temp
|
|
- Popup.back();
|
|
|
|
}
|
|
}
|
|
|
|
+ Popup.back();
|
|
} else if (brezhonegDate.isValid()) {
|
|
} else if (brezhonegDate.isValid()) {
|
|
// if active poker - store it
|
|
// if active poker - store it
|
|
if (this.currentData().getPokerQuestion()) {
|
|
if (this.currentData().getPokerQuestion()) {
|
|
this._storeDate(brezhonegDate.toDate());
|
|
this._storeDate(brezhonegDate.toDate());
|
|
this.card.setPokerEnd(brezhonegDate.toDate());
|
|
this.card.setPokerEnd(brezhonegDate.toDate());
|
|
- Popup.close();
|
|
|
|
} else {
|
|
} else {
|
|
this.currentData().poker = { end: brezhonegDate.toDate() }; // set poker end temp
|
|
this.currentData().poker = { end: brezhonegDate.toDate() }; // set poker end temp
|
|
- Popup.back();
|
|
|
|
}
|
|
}
|
|
|
|
+ Popup.back();
|
|
} else if (hrvatskiDate.isValid()) {
|
|
} else if (hrvatskiDate.isValid()) {
|
|
// if active poker - store it
|
|
// if active poker - store it
|
|
if (this.currentData().getPokerQuestion()) {
|
|
if (this.currentData().getPokerQuestion()) {
|
|
this._storeDate(hrvatskiDate.toDate());
|
|
this._storeDate(hrvatskiDate.toDate());
|
|
this.card.setPokerEnd(hrvatskiDate.toDate());
|
|
this.card.setPokerEnd(hrvatskiDate.toDate());
|
|
- Popup.close();
|
|
|
|
} else {
|
|
} else {
|
|
this.currentData().poker = { end: hrvatskiDate.toDate() }; // set poker end temp
|
|
this.currentData().poker = { end: hrvatskiDate.toDate() }; // set poker end temp
|
|
Popup.back();
|
|
Popup.back();
|
|
@@ -1341,41 +1340,37 @@ BlazeComponent.extendComponent({
|
|
if (this.currentData().getPokerQuestion()) {
|
|
if (this.currentData().getPokerQuestion()) {
|
|
this._storeDate(latviaDate.toDate());
|
|
this._storeDate(latviaDate.toDate());
|
|
this.card.setPokerEnd(latviaDate.toDate());
|
|
this.card.setPokerEnd(latviaDate.toDate());
|
|
- Popup.close();
|
|
|
|
} else {
|
|
} else {
|
|
this.currentData().poker = { end: latviaDate.toDate() }; // set poker end temp
|
|
this.currentData().poker = { end: latviaDate.toDate() }; // set poker end temp
|
|
- Popup.back();
|
|
|
|
}
|
|
}
|
|
|
|
+ Popup.back();
|
|
} else if (nederlandsDate.isValid()) {
|
|
} else if (nederlandsDate.isValid()) {
|
|
// if active poker - store it
|
|
// if active poker - store it
|
|
if (this.currentData().getPokerQuestion()) {
|
|
if (this.currentData().getPokerQuestion()) {
|
|
this._storeDate(nederlandsDate.toDate());
|
|
this._storeDate(nederlandsDate.toDate());
|
|
this.card.setPokerEnd(nederlandsDate.toDate());
|
|
this.card.setPokerEnd(nederlandsDate.toDate());
|
|
- Popup.close();
|
|
|
|
} else {
|
|
} else {
|
|
this.currentData().poker = { end: nederlandsDate.toDate() }; // set poker end temp
|
|
this.currentData().poker = { end: nederlandsDate.toDate() }; // set poker end temp
|
|
- Popup.back();
|
|
|
|
}
|
|
}
|
|
|
|
+ Popup.back();
|
|
} else if (greekDate.isValid()) {
|
|
} else if (greekDate.isValid()) {
|
|
// if active poker - store it
|
|
// if active poker - store it
|
|
if (this.currentData().getPokerQuestion()) {
|
|
if (this.currentData().getPokerQuestion()) {
|
|
this._storeDate(greekDate.toDate());
|
|
this._storeDate(greekDate.toDate());
|
|
this.card.setPokerEnd(greekDate.toDate());
|
|
this.card.setPokerEnd(greekDate.toDate());
|
|
- Popup.close();
|
|
|
|
} else {
|
|
} else {
|
|
this.currentData().poker = { end: greekDate.toDate() }; // set poker end temp
|
|
this.currentData().poker = { end: greekDate.toDate() }; // set poker end temp
|
|
- Popup.back();
|
|
|
|
}
|
|
}
|
|
|
|
+ Popup.back();
|
|
} else if (macedonianDate.isValid()) {
|
|
} else if (macedonianDate.isValid()) {
|
|
// if active poker - store it
|
|
// if active poker - store it
|
|
if (this.currentData().getPokerQuestion()) {
|
|
if (this.currentData().getPokerQuestion()) {
|
|
this._storeDate(macedonianDate.toDate());
|
|
this._storeDate(macedonianDate.toDate());
|
|
this.card.setPokerEnd(macedonianDate.toDate());
|
|
this.card.setPokerEnd(macedonianDate.toDate());
|
|
- Popup.close();
|
|
|
|
} else {
|
|
} else {
|
|
this.currentData().poker = { end: macedonianDate.toDate() }; // set poker end temp
|
|
this.currentData().poker = { end: macedonianDate.toDate() }; // set poker end temp
|
|
- Popup.back();
|
|
|
|
}
|
|
}
|
|
|
|
+ Popup.back();
|
|
} else {
|
|
} else {
|
|
this.error.set('invalid-date');
|
|
this.error.set('invalid-date');
|
|
evt.target.date.focus();
|
|
evt.target.date.focus();
|
|
@@ -1384,7 +1379,7 @@ BlazeComponent.extendComponent({
|
|
'click .js-delete-date'(evt) {
|
|
'click .js-delete-date'(evt) {
|
|
evt.preventDefault();
|
|
evt.preventDefault();
|
|
this._deleteDate();
|
|
this._deleteDate();
|
|
- Popup.close();
|
|
|
|
|
|
+ Popup.back();
|
|
},
|
|
},
|
|
},
|
|
},
|
|
];
|
|
];
|
|
@@ -1422,11 +1417,11 @@ BlazeComponent.extendComponent({
|
|
if (endString) {
|
|
if (endString) {
|
|
this.currentCard.setPokerEnd(endString);
|
|
this.currentCard.setPokerEnd(endString);
|
|
}
|
|
}
|
|
- Popup.close();
|
|
|
|
|
|
+ Popup.back();
|
|
},
|
|
},
|
|
'click .js-remove-poker': Popup.afterConfirm('deletePoker', (event) => {
|
|
'click .js-remove-poker': Popup.afterConfirm('deletePoker', (event) => {
|
|
this.currentCard.unsetPoker();
|
|
this.currentCard.unsetPoker();
|
|
- Popup.close();
|
|
|
|
|
|
+ Popup.back();
|
|
}),
|
|
}),
|
|
'click a.js-toggle-poker-allow-non-members'(event) {
|
|
'click a.js-toggle-poker-allow-non-members'(event) {
|
|
event.preventDefault();
|
|
event.preventDefault();
|
|
@@ -1489,7 +1484,7 @@ BlazeComponent.extendComponent({
|
|
// if active poker - store it
|
|
// if active poker - store it
|
|
if (this.currentData().getPokerQuestion()) {
|
|
if (this.currentData().getPokerQuestion()) {
|
|
this._storeDate(newDate.toDate());
|
|
this._storeDate(newDate.toDate());
|
|
- Popup.close();
|
|
|
|
|
|
+ Popup.back();
|
|
} else {
|
|
} else {
|
|
this.currentData().poker = { end: newDate.toDate() }; // set poker end temp
|
|
this.currentData().poker = { end: newDate.toDate() }; // set poker end temp
|
|
Popup.back();
|
|
Popup.back();
|
|
@@ -1521,130 +1516,117 @@ BlazeComponent.extendComponent({
|
|
// if active poker - store it
|
|
// if active poker - store it
|
|
if (this.currentData().getPokerQuestion()) {
|
|
if (this.currentData().getPokerQuestion()) {
|
|
this._storeDate(usaDate.toDate());
|
|
this._storeDate(usaDate.toDate());
|
|
- Popup.close();
|
|
|
|
} else {
|
|
} else {
|
|
this.currentData().poker = { end: usaDate.toDate() }; // set poker end temp
|
|
this.currentData().poker = { end: usaDate.toDate() }; // set poker end temp
|
|
- Popup.back();
|
|
|
|
}
|
|
}
|
|
|
|
+ Popup.back();
|
|
} else if (euroAmDate.isValid()) {
|
|
} else if (euroAmDate.isValid()) {
|
|
// if active poker - store it
|
|
// if active poker - store it
|
|
if (this.currentData().getPokerQuestion()) {
|
|
if (this.currentData().getPokerQuestion()) {
|
|
this._storeDate(euroAmDate.toDate());
|
|
this._storeDate(euroAmDate.toDate());
|
|
- Popup.close();
|
|
|
|
} else {
|
|
} else {
|
|
this.currentData().poker = { end: euroAmDate.toDate() }; // set poker end temp
|
|
this.currentData().poker = { end: euroAmDate.toDate() }; // set poker end temp
|
|
- Popup.back();
|
|
|
|
}
|
|
}
|
|
|
|
+ Popup.back();
|
|
} else if (euro24hDate.isValid()) {
|
|
} else if (euro24hDate.isValid()) {
|
|
// if active poker - store it
|
|
// if active poker - store it
|
|
if (this.currentData().getPokerQuestion()) {
|
|
if (this.currentData().getPokerQuestion()) {
|
|
this._storeDate(euro24hDate.toDate());
|
|
this._storeDate(euro24hDate.toDate());
|
|
this.card.setPokerEnd(euro24hDate.toDate());
|
|
this.card.setPokerEnd(euro24hDate.toDate());
|
|
- Popup.close();
|
|
|
|
} else {
|
|
} else {
|
|
this.currentData().poker = { end: euro24hDate.toDate() }; // set poker end temp
|
|
this.currentData().poker = { end: euro24hDate.toDate() }; // set poker end temp
|
|
- Popup.back();
|
|
|
|
}
|
|
}
|
|
|
|
+ Popup.back();
|
|
} else if (eurodotDate.isValid()) {
|
|
} else if (eurodotDate.isValid()) {
|
|
// if active poker - store it
|
|
// if active poker - store it
|
|
if (this.currentData().getPokerQuestion()) {
|
|
if (this.currentData().getPokerQuestion()) {
|
|
this._storeDate(eurodotDate.toDate());
|
|
this._storeDate(eurodotDate.toDate());
|
|
this.card.setPokerEnd(eurodotDate.toDate());
|
|
this.card.setPokerEnd(eurodotDate.toDate());
|
|
- Popup.close();
|
|
|
|
} else {
|
|
} else {
|
|
this.currentData().poker = { end: eurodotDate.toDate() }; // set poker end temp
|
|
this.currentData().poker = { end: eurodotDate.toDate() }; // set poker end temp
|
|
- Popup.back();
|
|
|
|
}
|
|
}
|
|
|
|
+ Popup.back();
|
|
} else if (minusDate.isValid()) {
|
|
} else if (minusDate.isValid()) {
|
|
// if active poker - store it
|
|
// if active poker - store it
|
|
if (this.currentData().getPokerQuestion()) {
|
|
if (this.currentData().getPokerQuestion()) {
|
|
this._storeDate(minusDate.toDate());
|
|
this._storeDate(minusDate.toDate());
|
|
this.card.setPokerEnd(minusDate.toDate());
|
|
this.card.setPokerEnd(minusDate.toDate());
|
|
- Popup.close();
|
|
|
|
} else {
|
|
} else {
|
|
this.currentData().poker = { end: minusDate.toDate() }; // set poker end temp
|
|
this.currentData().poker = { end: minusDate.toDate() }; // set poker end temp
|
|
- Popup.back();
|
|
|
|
}
|
|
}
|
|
|
|
+ Popup.back();
|
|
} else if (slashDate.isValid()) {
|
|
} else if (slashDate.isValid()) {
|
|
// if active poker - store it
|
|
// if active poker - store it
|
|
if (this.currentData().getPokerQuestion()) {
|
|
if (this.currentData().getPokerQuestion()) {
|
|
this._storeDate(slashDate.toDate());
|
|
this._storeDate(slashDate.toDate());
|
|
this.card.setPokerEnd(slashDate.toDate());
|
|
this.card.setPokerEnd(slashDate.toDate());
|
|
- Popup.close();
|
|
|
|
} else {
|
|
} else {
|
|
this.currentData().poker = { end: slashDate.toDate() }; // set poker end temp
|
|
this.currentData().poker = { end: slashDate.toDate() }; // set poker end temp
|
|
- Popup.back();
|
|
|
|
}
|
|
}
|
|
|
|
+ Popup.back();
|
|
} else if (dotDate.isValid()) {
|
|
} else if (dotDate.isValid()) {
|
|
// if active poker - store it
|
|
// if active poker - store it
|
|
if (this.currentData().getPokerQuestion()) {
|
|
if (this.currentData().getPokerQuestion()) {
|
|
this._storeDate(dotDate.toDate());
|
|
this._storeDate(dotDate.toDate());
|
|
this.card.setPokerEnd(dotDate.toDate());
|
|
this.card.setPokerEnd(dotDate.toDate());
|
|
- Popup.close();
|
|
|
|
} else {
|
|
} else {
|
|
this.currentData().poker = { end: dotDate.toDate() }; // set poker end temp
|
|
this.currentData().poker = { end: dotDate.toDate() }; // set poker end temp
|
|
- Popup.back();
|
|
|
|
}
|
|
}
|
|
|
|
+ Popup.back();
|
|
} else if (brezhonegDate.isValid()) {
|
|
} else if (brezhonegDate.isValid()) {
|
|
// if active poker - store it
|
|
// if active poker - store it
|
|
if (this.currentData().getPokerQuestion()) {
|
|
if (this.currentData().getPokerQuestion()) {
|
|
this._storeDate(brezhonegDate.toDate());
|
|
this._storeDate(brezhonegDate.toDate());
|
|
this.card.setPokerEnd(brezhonegDate.toDate());
|
|
this.card.setPokerEnd(brezhonegDate.toDate());
|
|
- Popup.close();
|
|
|
|
} else {
|
|
} else {
|
|
this.currentData().poker = { end: brezhonegDate.toDate() }; // set poker end temp
|
|
this.currentData().poker = { end: brezhonegDate.toDate() }; // set poker end temp
|
|
- Popup.back();
|
|
|
|
}
|
|
}
|
|
|
|
+ Popup.back();
|
|
} else if (hrvatskiDate.isValid()) {
|
|
} else if (hrvatskiDate.isValid()) {
|
|
// if active poker - store it
|
|
// if active poker - store it
|
|
if (this.currentData().getPokerQuestion()) {
|
|
if (this.currentData().getPokerQuestion()) {
|
|
this._storeDate(hrvatskiDate.toDate());
|
|
this._storeDate(hrvatskiDate.toDate());
|
|
this.card.setPokerEnd(hrvatskiDate.toDate());
|
|
this.card.setPokerEnd(hrvatskiDate.toDate());
|
|
- Popup.close();
|
|
|
|
} else {
|
|
} else {
|
|
this.currentData().poker = { end: hrvatskiDate.toDate() }; // set poker end temp
|
|
this.currentData().poker = { end: hrvatskiDate.toDate() }; // set poker end temp
|
|
- Popup.back();
|
|
|
|
}
|
|
}
|
|
|
|
+ Popup.back();
|
|
} else if (latviaDate.isValid()) {
|
|
} else if (latviaDate.isValid()) {
|
|
// if active poker - store it
|
|
// if active poker - store it
|
|
if (this.currentData().getPokerQuestion()) {
|
|
if (this.currentData().getPokerQuestion()) {
|
|
this._storeDate(latviaDate.toDate());
|
|
this._storeDate(latviaDate.toDate());
|
|
this.card.setPokerEnd(latviaDate.toDate());
|
|
this.card.setPokerEnd(latviaDate.toDate());
|
|
- Popup.close();
|
|
|
|
} else {
|
|
} else {
|
|
this.currentData().poker = { end: latviaDate.toDate() }; // set poker end temp
|
|
this.currentData().poker = { end: latviaDate.toDate() }; // set poker end temp
|
|
- Popup.back();
|
|
|
|
}
|
|
}
|
|
|
|
+ Popup.back();
|
|
} else if (nederlandsDate.isValid()) {
|
|
} else if (nederlandsDate.isValid()) {
|
|
// if active poker - store it
|
|
// if active poker - store it
|
|
if (this.currentData().getPokerQuestion()) {
|
|
if (this.currentData().getPokerQuestion()) {
|
|
this._storeDate(nederlandsDate.toDate());
|
|
this._storeDate(nederlandsDate.toDate());
|
|
this.card.setPokerEnd(nederlandsDate.toDate());
|
|
this.card.setPokerEnd(nederlandsDate.toDate());
|
|
- Popup.close();
|
|
|
|
} else {
|
|
} else {
|
|
this.currentData().poker = { end: nederlandsDate.toDate() }; // set poker end temp
|
|
this.currentData().poker = { end: nederlandsDate.toDate() }; // set poker end temp
|
|
- Popup.back();
|
|
|
|
}
|
|
}
|
|
|
|
+ Popup.back();
|
|
} else if (greekDate.isValid()) {
|
|
} else if (greekDate.isValid()) {
|
|
// if active poker - store it
|
|
// if active poker - store it
|
|
if (this.currentData().getPokerQuestion()) {
|
|
if (this.currentData().getPokerQuestion()) {
|
|
this._storeDate(greekDate.toDate());
|
|
this._storeDate(greekDate.toDate());
|
|
this.card.setPokerEnd(greekDate.toDate());
|
|
this.card.setPokerEnd(greekDate.toDate());
|
|
- Popup.close();
|
|
|
|
} else {
|
|
} else {
|
|
this.currentData().poker = { end: greekDate.toDate() }; // set poker end temp
|
|
this.currentData().poker = { end: greekDate.toDate() }; // set poker end temp
|
|
- Popup.back();
|
|
|
|
}
|
|
}
|
|
|
|
+ Popup.back();
|
|
} else if (macedonianDate.isValid()) {
|
|
} else if (macedonianDate.isValid()) {
|
|
// if active poker - store it
|
|
// if active poker - store it
|
|
if (this.currentData().getPokerQuestion()) {
|
|
if (this.currentData().getPokerQuestion()) {
|
|
this._storeDate(macedonianDate.toDate());
|
|
this._storeDate(macedonianDate.toDate());
|
|
this.card.setPokerEnd(macedonianDate.toDate());
|
|
this.card.setPokerEnd(macedonianDate.toDate());
|
|
- Popup.close();
|
|
|
|
} else {
|
|
} else {
|
|
this.currentData().poker = { end: macedonianDate.toDate() }; // set poker end temp
|
|
this.currentData().poker = { end: macedonianDate.toDate() }; // set poker end temp
|
|
- Popup.back();
|
|
|
|
}
|
|
}
|
|
|
|
+ Popup.back();
|
|
} else {
|
|
} else {
|
|
// this.error.set('invalid-date);
|
|
// this.error.set('invalid-date);
|
|
this.error.set('invalid-date' + ' ' + dateString);
|
|
this.error.set('invalid-date' + ' ' + dateString);
|
|
@@ -1654,7 +1636,7 @@ BlazeComponent.extendComponent({
|
|
'click .js-delete-date'(evt) {
|
|
'click .js-delete-date'(evt) {
|
|
evt.preventDefault();
|
|
evt.preventDefault();
|
|
this._deleteDate();
|
|
this._deleteDate();
|
|
- Popup.close();
|
|
|
|
|
|
+ Popup.back();
|
|
},
|
|
},
|
|
},
|
|
},
|
|
];
|
|
];
|
|
@@ -1781,7 +1763,7 @@ Template.cardAssigneePopup.helpers({
|
|
Template.cardAssigneePopup.events({
|
|
Template.cardAssigneePopup.events({
|
|
'click .js-remove-assignee'() {
|
|
'click .js-remove-assignee'() {
|
|
Cards.findOne(this.cardId).unassignAssignee(this.userId);
|
|
Cards.findOne(this.cardId).unassignAssignee(this.userId);
|
|
- Popup.close();
|
|
|
|
|
|
+ Popup.back();
|
|
},
|
|
},
|
|
'click .js-edit-profile': Popup.open('editProfile'),
|
|
'click .js-edit-profile': Popup.open('editProfile'),
|
|
});
|
|
});
|