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:
@@ -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);
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
|
Reference in New Issue
Block a user