1
0
mirror of http://git.whoc.org.uk/git/password-manager.git synced 2024-09-21 09:41:34 +02:00

fix the cancel button for editing cards

The javascript was checking for the parameters assuming the backend
provided version information.  The community edition backend does not
supply any versioning information so the javascript checks both
locations
This commit is contained in:
Josh 2012-06-15 21:26:30 -04:00
parent 36ff1deefc
commit 36b3236415

View File

@ -292,8 +292,14 @@ console.log("Record.processData", someValues);
this.setCurrentVersionKey(this.key());
}
// currentVersionParameters = someValues['currentVersion'];
currentVersionParameters = someValues['versions'][someValues['currentVersion']];
// community edition doesn't currently pass version
// information
if (someValues['versions'] == null) {
currentVersionParameters = someValues['currentVersion'];
} else {
currentVersionParameters = someValues['versions'][someValues['currentVersion']];
}
console.log("Record.processData - this.currentVersionKey()", this.currentVersionKey());
console.log("Record.processData - currentVersionParameters", currentVersionParameters);
currentVersionParameters['key'] = this.currentVersionKey();