Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/jsxc.nextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorsualko <klaus@jsxc.org>2017-08-22 15:20:00 +0300
committersualko <klaus@jsxc.org>2017-08-22 15:20:00 +0300
commit9b0f3920d1e41c1aa743fbca2e6047a1635cb8c4 (patch)
tree6cf4726747e667a563d28a4ee5f74c59add49aba /js
parentcdf45a78e5b5722d9c89dfee3911902d695ad33f (diff)
fix valuation of save settings return value
Diffstat (limited to 'js')
-rw-r--r--js/ojsxc.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/ojsxc.js b/js/ojsxc.js
index ca475e8..e253858 100644
--- a/js/ojsxc.js
+++ b/js/ojsxc.js
@@ -257,7 +257,7 @@
url: OC.generateUrl('apps/ojsxc/settings/user'),
data: data,
success: function(data) {
- cb(data.trim() === 'true');
+ cb(data && data.status === 'success');
},
error: function() {
cb(false);