1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-02 07:27:04 +00:00

add remote wipe option when admin unlink device

This commit is contained in:
lian
2017-01-17 11:05:48 +08:00
parent b4599bf6b0
commit f13b61e497
4 changed files with 64 additions and 18 deletions

View File

@@ -12,6 +12,9 @@ define([
'device_id': this.get('device_id'),
'user': this.get('user')
};
if (options.wipe_device) {
data['wipe_device'] = 'true';
}
$.ajax({
url: Common.getUrl({name: 'admin-devices'}),
@@ -28,6 +31,11 @@ define([
if (options.error) {
options.error(xhr);
}
},
complete: function(xhr) {
if (options.complete) {
options.complete(xhr);
}
}
});
},