1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-18 00:00:00 +00:00

update device remote wipe

This commit is contained in:
lian
2016-05-27 10:04:27 +08:00
parent 7dc7034de4
commit 2258067cd8
3 changed files with 15 additions and 23 deletions

View File

@@ -49,25 +49,6 @@ define([
return this;
},
unlinkDevice: function() {
var _this = this,
device_name = this.model.get('device_name');
this.model.unlink({
success: function() {
_this.remove();
var msg = gettext("Successfully unlink %(name)s.")
.replace('%(name)s', Common.HTMLescape(device_name));
Common.feedback(msg, 'success');
},
error: function(xhr) {
Common.ajaxErrorHandler(xhr);
}
});
return false;
},
unlinkDeviceWithConfirm: function() {
var _this = this,
device_name = this.model.get('device_name');
@@ -76,7 +57,6 @@ define([
var extraOption = gettext('Delete files from this device the next time it comes online.');
var yesCallback = function (wipe_device) {
console.log('wipe_device = ' + wipe_device);
_this.model.unlink({
wipe_device: wipe_device,