Merge pull request #416 from xwiki-labs/dontClickMoreThanOnceOnTheStorePadInDriveButton
Dont click more than once on the store pad in drive button
This commit is contained in:
commit
20815eb725
@ -2769,8 +2769,12 @@ define([
|
|||||||
UIElements.displayCrowdfunding(common);
|
UIElements.displayCrowdfunding(common);
|
||||||
modal.delete();
|
modal.delete();
|
||||||
});
|
});
|
||||||
|
var waitingForStoringCb = false;
|
||||||
$(store).click(function () {
|
$(store).click(function () {
|
||||||
|
if (waitingForStoringCb) { return; }
|
||||||
|
waitingForStoringCb = true;
|
||||||
common.getSframeChannel().query("Q_AUTOSTORE_STORE", null, function (err, obj) {
|
common.getSframeChannel().query("Q_AUTOSTORE_STORE", null, function (err, obj) {
|
||||||
|
waitingForStoringCb = false;
|
||||||
var error = err || (obj && obj.error);
|
var error = err || (obj && obj.error);
|
||||||
if (error) {
|
if (error) {
|
||||||
if (error === 'E_OVER_LIMIT') {
|
if (error === 'E_OVER_LIMIT') {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user