Merge pull request #416 from xwiki-labs/dontClickMoreThanOnceOnTheStorePadInDriveButton

Dont click more than once on the store pad in drive button
pull/1/head
ansuz 5 years ago committed by GitHub
commit 20815eb725
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2769,8 +2769,12 @@ define([
UIElements.displayCrowdfunding(common);
modal.delete();
});
var waitingForStoringCb = false;
$(store).click(function () {
if (waitingForStoringCb) { return; }
waitingForStoringCb = true;
common.getSframeChannel().query("Q_AUTOSTORE_STORE", null, function (err, obj) {
waitingForStoringCb = false;
var error = err || (obj && obj.error);
if (error) {
if (error === 'E_OVER_LIMIT') {

Loading…
Cancel
Save