mirror of
http://git.whoc.org.uk/git/password-manager.git
synced 2024-11-14 18:29:02 +01:00
Fixed problem with card Cloning
This commit is contained in:
parent
72aa4ecfb6
commit
0e407eb6a6
@ -836,13 +836,15 @@ Clipperz.log("Warning: User.recordWithLabel('" + aLabel + "') is returning more
|
||||
var user = this;
|
||||
|
||||
return Clipperz.Async.callbacks("User.cloneRecord", [
|
||||
MochiKit.Base.method(this, 'hasPendingChanges'),
|
||||
Clipperz.Async.deferredIf("User has pending changes", [
|
||||
MochiKit.Async.fail
|
||||
], [
|
||||
MochiKit.Base.method(user, 'createNewRecord'),
|
||||
MochiKit.Base.methodcaller('setUpWithRecord', aRecord),
|
||||
])
|
||||
// MochiKit.Base.method(this, 'hasPendingChanges'),
|
||||
// Clipperz.Async.deferredIf("User has pending changes", [
|
||||
/// MochiKit.Async.fail
|
||||
// ], [
|
||||
// MochiKit.Base.method(user, 'createNewRecord'),
|
||||
// MochiKit.Base.methodcaller('setUpWithRecord', aRecord),
|
||||
// ])
|
||||
MochiKit.Base.method(user, 'createNewRecord'),
|
||||
MochiKit.Base.methodcaller('setUpWithRecord', aRecord),
|
||||
], {trace:false});
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user