192 Commits

Author SHA1 Message Date
Javier Abadia
5733080102 undo/redo management & tests 2014-01-21 00:15:27 +01:00
Javier Abadia
f7ff11f572 serialize/deserialize don't need to be public operations
serialize graphics only to JSON object... the 'edit' will be serialized to string
2014-01-20 23:07:48 +01:00
Javier Abadia
f3f1d9fc53 low level management of pending edits storage in localStorage, looking very good 2014-01-20 17:58:57 +01:00
Javier Abadia
f09579dd6a better explanation 2014-01-20 12:26:52 +01:00
Javier Abadia
88752ba1fb serialization/deserialization: simple and correct 2014-01-20 11:55:43 +01:00
Javier Abadia
bee248312b it's nearly working 2014-01-20 00:30:40 +01:00
Javier Abadia
2c290e580b simplify code in _updateExistingLocalStore 2014-01-18 23:08:03 +01:00
Javier Abadia
2cd8850ae4 no need for "internal models" 2014-01-18 23:03:10 +01:00
Javier Abadia
b558111bcf this code is equivalent, except for the JSON correctness test, that should go elsewhere 2014-01-18 22:42:47 +01:00
Javier Abadia
9299d4cb70 simplified TOKEN separator logic, much easier when putting TOKENS between elements, and not AFTER elements 2014-01-18 22:34:22 +01:00
Javier Abadia
84a0690902 refactored common code in one function 2014-01-18 21:58:23 +01:00
Javier Abadia
ce6e8ff391 better string concatenation 2014-01-18 21:51:00 +01:00
Javier Abadia
470b34c892 remove dependency to Hydrate.js 2014-01-18 21:37:35 +01:00
Javier Abadia
174ac112a7 changed for(in) to for(i;i<n;i++), see http://stackoverflow.com/questions/500504/why-is-using-for-in-with-array-iteration-such-a-bad-idea 2014-01-18 20:16:42 +01:00
Javier Abadia
6e08c15e19 use strict 2014-01-18 20:15:36 +01:00
andygup
c5e2742045 more changes to stability temp store undo functionality 2014-01-17 15:50:01 -07:00
andygup
593eb57ec4 Initial restructing of _reestablishInternet() and it’s related functionality. 2014-01-17 09:12:34 -07:00
andygup
5452dc7373 Fixed bug that prevent temp store deletes when multiple edits were cached. 2014-01-14 17:51:41 -07:00
andygup
fa1a50eb71 Fixed another undo bug. 2014-01-14 17:15:58 -07:00
andygup
c20f68fcbd fixed layerEditManager bug related to online edit updates. 2014-01-14 15:59:50 -07:00
andygup
3c1608054e Many edits to prepare for edit undo functionality. 2014-01-14 15:55:20 -07:00
andygup
5699d417e0 More changes related to handling rollback of an edit. Plus fixes for applyEdit bugs. Some changes were lost related to a corruption in my local git. 2014-01-14 12:00:33 -07:00
Andy
f9df767f48 Merge pull request #41 from jabadia/jabadia
jabadia - included save and load tiles to/from csv files
2014-01-14 08:20:32 -08:00
Javier Abadia
dad8ca5683 added error handling to file saving (don't know how to cause errors, so haven't been able to test properly) 2014-01-14 16:44:55 +01:00
Javier Abadia
e0d173f55f this sample has been merged into the samples/tiles sample, and save/load functionality is now part of the library 2014-01-14 16:05:33 +01:00
Javier Abadia
5428192ad9 issues 2014-01-14 16:03:43 +01:00
Javier Abadia
de1cd8afa8 better style for "Load" button 2014-01-14 09:02:51 +01:00
Javier Abadia
6893366f57 need to do more cross-browser testing 2014-01-14 00:28:31 +01:00
Javier Abadia
9ef84be46d this check fails in Firefox... why was it needed? 2014-01-14 00:09:31 +01:00
Javier Abadia
e94f1b83f0 implemented load of tiles from csv file 2014-01-13 23:43:35 +01:00
Javier Abadia
220a9476c0 buttons below the map 2014-01-13 22:53:21 +01:00
Javier Abadia
e152a5d716 initial state of button 2014-01-13 22:38:33 +01:00
Javier Abadia
8ec1760770 buttons on top 2014-01-13 18:38:21 +01:00
Javier Abadia
fbcfaa05bb implemented saving of tiles to a csv file 2014-01-13 18:28:44 +01:00
Javier Abadia
39c4e84827 add buttons to save to file and load from file 2014-01-13 14:22:27 +01:00
Javier Abadia
ddbf16194b simplified progress reporting 2014-01-13 13:56:00 +01:00
Javier Abadia
4dae3ebd61 more issues to work on 2014-01-13 13:24:47 +01:00
andygup
2aba3c7e03 more infrastructure to support rollback of an offline edit 2014-01-12 22:31:00 -07:00
andygup
d9efc11592 Closes #40. Also added tests to support that issue. 2014-01-10 18:20:54 -07:00
andygup
0ae10f89b4 rewrote event bus in OfflineStore 2014-01-09 18:07:13 -07:00
andygup
54292acdcd added ability to log all edits offline and online. Still needs some work. 2014-01-08 17:57:41 -07:00
andygup
376abbdecf Fixes #37, Previous commit fixes #27. Logs basic activity tracking in edit-basic UX 2014-01-08 13:52:03 -07:00
andygup
f41f1b7ac0 fixed index getters and setters. Added addt’l tests to validate index data 2014-01-08 11:01:10 -07:00
andygup
dd896d167f fixes #36 2014-01-08 10:48:25 -07:00
andygup
c9d69a8cc9 fixes issue #35 2014-01-07 17:19:05 -07:00
andygup
4007637b31 restructured phonegap sample directory. Minor update to readme 2014-01-07 11:45:38 -07:00
Andy
bd26f249aa Merge pull request #33 from jabadia/jabadia
jabadia - breaking changes, reorganized files around - **read before** accepting the Pull Request
2014-01-07 07:54:30 -08:00
Javier Abadia
e60af4e640 updated documentation in README.md 2014-01-04 19:35:14 +01:00
Javier Abadia
5e8bc33dca moved 'edit' directory to 'lib/edit' 2014-01-03 00:44:54 +01:00
Javier Abadia
4554b3cada more paths fixed 2014-01-03 00:39:02 +01:00