summaryrefslogtreecommitdiffstats
path: root/core/js/shareitemmodel.js
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2016-12-02 13:14:25 +0100
committerBjoern Schiessle <bjoern@schiessle.org>2016-12-08 10:29:51 +0100
commit3ac8d422ded4f2bc1064448041cadb4727e2c1ef (patch)
tree563fc7207bf038c5773a89a3910a349c65bf6764 /core/js/shareitemmodel.js
parent056e59af7e98a8526739a441e052b5af6d7f8320 (diff)
downloadnextcloud-server-3ac8d422ded4f2bc1064448041cadb4727e2c1ef.tar.gz
nextcloud-server-3ac8d422ded4f2bc1064448041cadb4727e2c1ef.zip
disable checkboxes during save op to avoid race conditions
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'core/js/shareitemmodel.js')
-rw-r--r--core/js/shareitemmodel.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/js/shareitemmodel.js b/core/js/shareitemmodel.js
index 4a82630b967..b01f0f790ac 100644
--- a/core/js/shareitemmodel.js
+++ b/core/js/shareitemmodel.js
@@ -573,7 +573,7 @@
return superShare;
},
- fetch: function() {
+ fetch: function(options) {
var model = this;
this.trigger('request', this);
@@ -597,6 +597,10 @@
shares: sharesMap,
reshare: reshare
}));
+
+ if(!_.isUndefined(options) && _.isFunction(options.success)) {
+ options.success();
+ }
});
return deferred;