Javier Abadia
|
d5c106fa14
|
first step into refactoring attachmentsStore.js
|
2014-04-27 22:37:23 +02:00 |
|
Javier Abadia
|
02f913bb43
|
replace the default URL that is set by attachmentEditor with the local file URL
|
2014-04-27 22:37:23 +02:00 |
|
Javier Abadia
|
611d509fb0
|
see local files using createObjectURL()
need to:
- revoke the URL when deleting the attachment
- update the inmediate pop-up URL
|
2014-04-27 22:37:23 +02:00 |
|
Javier Abadía
|
7c7c6abb3b
|
Merge pull request #169 from jabadia/jabadia-attachments
jabadia delete local attachments
|
2014-04-27 22:35:40 +02:00 |
|
Javier Abadia
|
f1f8111e50
|
delete of local attachments implemented
|
2014-04-27 01:15:07 +02:00 |
|
Javier Abadia
|
b58ba99d8a
|
delete attachments of those features that are deleted offline
|
2014-04-27 00:08:48 +02:00 |
|
Javier Abadía
|
24b0aab662
|
Merge pull request #168 from jabadia/jabadia-jslint-fixes2
more JSLint fixes
|
2014-04-26 19:14:24 +02:00 |
|
Javier Abadia
|
6585928cf3
|
more JSLint fixes
|
2014-04-26 19:13:34 +02:00 |
|
Javier Abadía
|
2e143c7b58
|
Merge pull request #167 from jabadia/jabadia-jslint-fixes
fixed some JSLint warnings
|
2014-04-26 19:09:43 +02:00 |
|
Javier Abadia
|
4ba10390ba
|
fixed some JSLint warnings
|
2014-04-26 18:47:29 +02:00 |
|
Andy
|
4a33ef2b63
|
Merge pull request #165 from andygup/update_readme
updated readme
|
2014-04-15 09:38:02 -06:00 |
|
andygup
|
24f1ac44d8
|
updated readme
|
2014-04-15 09:37:10 -06:00 |
|
Andy
|
79e40ae9e0
|
Merge pull request #164 from jabadia/jabadia-attachments
attachments
|
2014-04-15 09:10:50 -06:00 |
|
Javier Abadia
|
cd0bcf9634
|
comments and code reordering to have a more clear structure inside the file
|
2014-04-15 16:47:34 +02:00 |
|
Javier Abadia
|
8973f76e6b
|
fixed a difficult bug when extending XMLHttpRequest in with sendAsBinary() method in Chrome
attachment-editor.html sample works now
|
2014-04-15 15:43:56 +02:00 |
|
Javier Abadia
|
d681022d0a
|
refactored attachmentsStore into offlineFeaturesManager (and not in each layer)
|
2014-04-15 14:09:15 +02:00 |
|
Javier Abadia
|
53da2e734a
|
added getAllAttachments() method
|
2014-04-15 14:08:04 +02:00 |
|
Javier Abadia
|
89fced9e79
|
much more readable code
|
2014-04-15 12:45:05 +02:00 |
|
Javier Abadia
|
12be0cd6d6
|
now we can upload attachments and delete them from indexeddb afterwards
|
2014-04-15 12:30:30 +02:00 |
|
Javier Abadia
|
d92acc87b3
|
implemented delete() method
|
2014-04-15 12:01:07 +02:00 |
|
Javier Abadia
|
9470f24990
|
now, uploading attachments works (not complete)
|
2014-04-15 11:46:38 +02:00 |
|
Javier Abadia
|
363396faea
|
fixed getAttachmentsByFeatureLayer() to support negative featureIds
fixed replaceFeatureId() method to allow changes to be really written
|
2014-04-15 11:45:09 +02:00 |
|
Javier Abadia
|
fda270c218
|
almost working for uploading new attachments
|
2014-04-14 18:31:29 +02:00 |
|
Javier Abadia
|
db7f2b1f45
|
add getAttachmentsByFeatureLayer() method to attachmentsStore
|
2014-04-14 18:00:04 +02:00 |
|
Javier Abadia
|
0f76800d34
|
allow time for changes to persist
|
2014-04-14 17:42:12 +02:00 |
|
Javier Abadia
|
25d427faaf
|
added replaceFeatureId() method to low level attachmentsStore module
|
2014-04-14 17:34:41 +02:00 |
|
Javier Abadia
|
20578f3bf3
|
more unit testing
|
2014-04-14 13:38:58 +02:00 |
|
Javier Abadia
|
f57f22dd7a
|
keep working in attachment unit tests
|
2014-04-14 12:11:36 +02:00 |
|
Javier Abadia
|
6638bd9a0f
|
Merge branch 'jabadia-attachments' of github.com:jabadia/offline-editor-js into jabadia-attachments
|
2014-04-14 11:25:22 +02:00 |
|
Javier Abadia
|
701789f6ad
|
moved attachments testing into separate test suite
|
2014-04-10 23:10:13 +02:00 |
|
Javier Abadia
|
9ca50f6f00
|
started writing unit tests for attachment management
|
2014-04-10 22:48:46 +02:00 |
|
Javier Abadia
|
d93ff253da
|
new method to delete all attachments of a feature
|
2014-04-10 22:48:46 +02:00 |
|
Javier Abadia
|
3db9f5801d
|
reminder of task to do
|
2014-04-10 22:48:46 +02:00 |
|
Javier Abadia
|
71b5e52b1e
|
comments for next steps
|
2014-04-10 22:48:45 +02:00 |
|
Javier Abadia
|
74d6ec5563
|
store featurelayerurl along with attachment, so that we can keep attachments for different feature layers in the same indexeddb objectstore
|
2014-04-10 22:48:45 +02:00 |
|
Javier Abadia
|
a1225faaac
|
noticed a potential problem if we have multiple input nodes or multiple files
|
2014-04-10 22:48:45 +02:00 |
|
Javier Abadia
|
e13b12904d
|
store attachments in local storage
query them when showing the popup (can't display them though)
|
2014-04-10 22:48:45 +02:00 |
|
Javier Abadia
|
00b7abb581
|
already read file(s) from input node into string(s)
|
2014-04-10 22:48:45 +02:00 |
|
Javier Abadia
|
1de689bf3d
|
delete all attachments after testing
|
2014-04-10 22:48:44 +02:00 |
|
Javier Abadia
|
7795fe0235
|
changed properties of stored attachments to mimic return values of queryAttachmentInfos REST API
|
2014-04-10 22:48:44 +02:00 |
|
Javier Abadia
|
6569b8353e
|
unit testing fo attachmentsStore.js
|
2014-04-10 22:48:44 +02:00 |
|
Javier Abadia
|
2c43e07968
|
low level functions in attachmentsStore.js
|
2014-04-10 22:48:44 +02:00 |
|
Javier Abadia
|
44adb78246
|
renamed attachmentStore.js file
|
2014-04-10 22:48:44 +02:00 |
|
Javier Abadia
|
fe09a5d329
|
code cleanup
|
2014-04-10 22:48:44 +02:00 |
|
Javier Abadia
|
ca59ea1820
|
some comments about what needs to be done
|
2014-04-10 22:48:43 +02:00 |
|
Javier Abadia
|
4481804122
|
initial scaffold for attachments handling
|
2014-04-10 22:48:43 +02:00 |
|
Javier Abadia
|
17a2b579c0
|
relative path needed here
|
2014-04-10 22:48:43 +02:00 |
|
Javier Abadia
|
2214911a8a
|
copied from API doc samples
https://developers.arcgis.com/javascript/jssamples/ed_attachments.html
|
2014-04-10 22:48:43 +02:00 |
|
Javier Abadía
|
5223c8b6f3
|
Merge pull request #161 from andygup/feature_cache_sample
App cache plus store features sample
|
2014-04-10 22:46:58 +02:00 |
|
andygup
|
7ea7fb9a34
|
don't need the geometry when using snapshot mode.
|
2014-04-10 11:45:02 -06:00 |
|