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