summaryrefslogtreecommitdiff
authorJosh <jokajak@gmail.com>2012-06-16 01:26:30 (UTC)
committer Josh <jokajak@gmail.com>2012-06-16 01:26:30 (UTC)
commit36b3236415b856ddd0ad2804e82e410b5240ff4f (patch) (unidiff)
treef2efea0a967f890ce9235871fd26a96515596bc4
parent36ff1deefcbbd24aceca97eb39a13f9da4af8ff5 (diff)
downloadclipperz-36b3236415b856ddd0ad2804e82e410b5240ff4f.zip
clipperz-36b3236415b856ddd0ad2804e82e410b5240ff4f.tar.gz
clipperz-36b3236415b856ddd0ad2804e82e410b5240ff4f.tar.bz2
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
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--frontend/beta/js/Clipperz/PM/DataModel/Record.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/frontend/beta/js/Clipperz/PM/DataModel/Record.js b/frontend/beta/js/Clipperz/PM/DataModel/Record.js
index ffb45de..9e496de 100644
--- a/frontend/beta/js/Clipperz/PM/DataModel/Record.js
+++ b/frontend/beta/js/Clipperz/PM/DataModel/Record.js
@@ -294,4 +294,10 @@ console.log("Record.processData", someValues);
294 294
295 // currentVersionParameters = someValues['currentVersion']; 295 // community edition doesn't currently pass version
296 // information
297 if (someValues['versions'] == null) {
298 currentVersionParameters = someValues['currentVersion'];
299 } else {
296 currentVersionParameters = someValues['versions'][someValues['currentVersion']]; 300 currentVersionParameters = someValues['versions'][someValues['currentVersion']];
301 }
302
297console.log("Record.processData - this.currentVersionKey()", this.currentVersionKey()); 303console.log("Record.processData - this.currentVersionKey()", this.currentVersionKey());