send feedback on donation
This commit is contained in:
parent
8507f77116
commit
ec6ad6772b
@ -702,14 +702,22 @@ define([
|
|||||||
if (Cryptpad.account.plan) { return; }
|
if (Cryptpad.account.plan) { return; }
|
||||||
|
|
||||||
var text;
|
var text;
|
||||||
|
var feedback;
|
||||||
if (ApiConfig.allowSubscriptions && Cryptpad.isLoggedIn()) {
|
if (ApiConfig.allowSubscriptions && Cryptpad.isLoggedIn()) {
|
||||||
text = Messages.upgradeAccount;
|
text = Messages.upgradeAccount;
|
||||||
} else { text = Messages.supportCryptpad; }
|
feedback = "UPGRADE_ACCOUNT";
|
||||||
|
} else {
|
||||||
|
text = Messages.supportCryptpad;
|
||||||
|
feedback = "SUPPORT_CRYPTPAD";
|
||||||
|
}
|
||||||
|
|
||||||
var $upgrade = toolbar.$top.find('.' + UPGRADE_CLS).attr({
|
var $upgrade = toolbar.$top.find('.' + UPGRADE_CLS).attr({
|
||||||
'title': Messages.supportCryptpad
|
'title': Messages.supportCryptpad
|
||||||
}).text(text).show()
|
}).text(text).show()
|
||||||
.click(function () { window.open(Cryptpad.donateURL,'_blank'); });
|
.click(function () {
|
||||||
|
Cryptpad.feedback(feedback);
|
||||||
|
window.open(Cryptpad.donateURL,'_blank');
|
||||||
|
});
|
||||||
return $upgrade;
|
return $upgrade;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user