Merge pull request #475 from andygup/gh-pages

Update gh-pages
This commit is contained in:
Andy 2016-07-12 16:53:44 -06:00 committed by GitHub
commit 68f48fd057
13 changed files with 30 additions and 18 deletions

View File

@ -1,5 +1,17 @@
# offline-editor-js - Changelog
## Version 3.3.0 - June 12, 2016
No breaking changes.
**Enhancements**
* Closes #473 - offline edits breaking when special characters such as "&" are used within attribute values.
## Changed deprecation notice to Maintenance Mode notice - June 1, 2016
Per several requests, this hopefully clarifies that the library is still being maintained and not being
removed.
## Deprecation details - May 23, 2016
For details and comments on the deprecation refer to this [issue](https://github.com/Esri/offline-editor-js/issues/468).

View File

@ -120,7 +120,7 @@ e.length>0&&e[0].success&&(h=e[0].objectId),f.length>0&&f[0].success&&(h=f[0].ob
var i={}
return i.attributes={},i.attributes[this.DB_UID]=h,this._editStore["delete"](a.url,i,function(a,b){if(a){var c=this._editStore.PHANTOM_GRAPHIC_PREFIX+this._editStore._PHANTOM_PREFIX_TOKEN+i.attributes[this.DB_UID]
this._editStore.deletePhantomGraphic(c,function(a,b){a?g.resolve({success:!0,error:null,id:c}):g.reject({success:!1,error:b,id:c})})}else g.reject({success:!1,error:b,id:c})}.bind(this)),g.promise},_makeEditRequest:function(a,b,c,d,f,g){var h="f=json",i="",j="",k=""
if(b.length>0&&(e.forEach(b,function(a){a.hasOwnProperty("infoTemplate")&&delete a.infoTemplate},this),i="&adds="+JSON.stringify(b)),c.length>0&&(e.forEach(c,function(a){a.hasOwnProperty("infoTemplate")&&delete a.infoTemplate},this),j="&updates="+JSON.stringify(c)),d.length>0){var l=d[0].attributes[this.DB_UID]
if(b.length>0&&(e.forEach(b,function(a){a.hasOwnProperty("infoTemplate")&&delete a.infoTemplate},this),i="&adds="+encodeURIComponent(JSON.stringify(b))),c.length>0&&(e.forEach(c,function(a){a.hasOwnProperty("infoTemplate")&&delete a.infoTemplate},this),j="&updates="+encodeURIComponent(JSON.stringify(c))),d.length>0){var l=d[0].attributes[this.DB_UID]
k="&deletes="+l}var m=h+i+j+k
a.hasOwnProperty("credential")&&a.credential&&a.credential.hasOwnProperty("token")&&a.credential.token&&(m=m+"&token="+a.credential.token)
var n=this.proxyPath?this.proxyPath+"?"+a.url:a.url,o=new XMLHttpRequest

View File

@ -1,4 +1,4 @@
/*! esri-offline-maps - v3.2.0 - 2016-05-12
/*! esri-offline-maps - v3.3.0 - 2016-07-12
* Copyright (c) 2016 Environmental Systems Research Institute, Inc.
* Apache License*/
// Configure offline/online detection
@ -2033,7 +2033,7 @@ define([
delete add.infoTemplate; // delete it to reduce payload size.
}
}, this);
a = "&adds=" + JSON.stringify((adds));
a = "&adds=" + encodeURIComponent(JSON.stringify(adds));
}
if(updates.length > 0) {
array.forEach(updates, function(update){
@ -2041,7 +2041,7 @@ define([
delete update.infoTemplate; // delete it to reduce payload size.
}
}, this);
u = "&updates=" + JSON.stringify(updates);
u = "&updates=" + encodeURIComponent(JSON.stringify(updates));
}
if(deletes.length > 0) {
var id = deletes[0].attributes[this.DB_UID];

View File

@ -53,7 +53,7 @@ a.add(j)}h._cleanDatabase(a,d,b,f,g).then(function(e){i.resolve({id:c,layer:a.ur
e.length>0&&e[0].success&&(h=e[0].objectId),f.length>0&&f[0].success&&(h=f[0].objectId),d.length>0&&d[0].success&&(h=c)
var i={}
return i.attributes={},i.attributes[this.DB_UID]=h,this._editStore["delete"](a.url,i,function(a,b){a?g.resolve({success:!0,error:null,id:h}):g.reject({success:!1,error:b,id:h})}),g.promise},_makeEditRequest:function(a,b,c,d,f,g){var h="f=json",i="",j="",k=""
if(b.length>0&&(e.forEach(b,function(a){a.hasOwnProperty("infoTemplate")&&delete a.infoTemplate},this),i="&adds="+JSON.stringify(b)),c.length>0&&(e.forEach(c,function(a){a.hasOwnProperty("infoTemplate")&&delete a.infoTemplate},this),j="&updates="+JSON.stringify(c)),d.length>0){var l=d[0].attributes[this.DB_UID]
if(b.length>0&&(e.forEach(b,function(a){a.hasOwnProperty("infoTemplate")&&delete a.infoTemplate},this),i="&adds="+encodeURIComponent(JSON.stringify(b))),c.length>0&&(e.forEach(c,function(a){a.hasOwnProperty("infoTemplate")&&delete a.infoTemplate},this),j="&updates="+encodeURIComponent(JSON.stringify(c))),d.length>0){var l=d[0].attributes[this.DB_UID]
k="&deletes="+l}var m=h+i+j+k
a.hasOwnProperty("credential")&&a.credential&&a.credential.hasOwnProperty("token")&&a.credential.token&&(m=m+"&token="+a.credential.token)
var n=this.proxyPath?this.proxyPath+"?"+a.url:a.url,o=new XMLHttpRequest

View File

@ -1,4 +1,4 @@
/*! esri-offline-maps - v3.2.0 - 2016-05-12
/*! esri-offline-maps - v3.3.0 - 2016-07-12
* Copyright (c) 2016 Environmental Systems Research Institute, Inc.
* Apache License*/
// Configure offline/online detection
@ -944,7 +944,7 @@ define([
delete add.infoTemplate; // delete it to reduce payload size.
}
}, this);
a = "&adds=" + JSON.stringify((adds));
a = "&adds=" + encodeURIComponent(JSON.stringify(adds));
}
if(updates.length > 0) {
array.forEach(updates, function(update){
@ -952,7 +952,7 @@ define([
delete update.infoTemplate; // delete it to reduce payload size.
}
}, this);
u = "&updates=" + JSON.stringify(updates);
u = "&updates=" + encodeURIComponent(JSON.stringify(updates));
}
if(deletes.length > 0) {
var id = deletes[0].attributes[this.DB_UID];

View File

@ -1,4 +1,4 @@
/*! esri-offline-maps - v3.2.0 - 2016-05-12
/*! esri-offline-maps - v3.3.0 - 2016-07-12
* Copyright (c) 2016 Environmental Systems Research Institute, Inc.
* Apache License*/
define([

View File

@ -1,4 +1,4 @@
/*! esri-offline-maps - v3.2.0 - 2016-05-12
/*! esri-offline-maps - v3.3.0 - 2016-07-12
* Copyright (c) 2016 Environmental Systems Research Institute, Inc.
* Apache License*/
define([

View File

@ -1,4 +1,4 @@
/*! esri-offline-maps - v3.2.0 - 2016-05-12
/*! esri-offline-maps - v3.3.0 - 2016-07-12
* Copyright (c) 2016 Environmental Systems Research Institute, Inc.
* Apache License*/
/**

View File

@ -2017,7 +2017,7 @@ define([
delete add.infoTemplate; // delete it to reduce payload size.
}
}, this);
a = "&adds=" + JSON.stringify((adds));
a = "&adds=" + encodeURIComponent(JSON.stringify(adds));
}
if(updates.length > 0) {
array.forEach(updates, function(update){
@ -2025,7 +2025,7 @@ define([
delete update.infoTemplate; // delete it to reduce payload size.
}
}, this);
u = "&updates=" + JSON.stringify(updates);
u = "&updates=" + encodeURIComponent(JSON.stringify(updates));
}
if(deletes.length > 0) {
var id = deletes[0].attributes[this.DB_UID];

View File

@ -928,7 +928,7 @@ define([
delete add.infoTemplate; // delete it to reduce payload size.
}
}, this);
a = "&adds=" + JSON.stringify((adds));
a = "&adds=" + encodeURIComponent(JSON.stringify(adds));
}
if(updates.length > 0) {
array.forEach(updates, function(update){
@ -936,7 +936,7 @@ define([
delete update.infoTemplate; // delete it to reduce payload size.
}
}, this);
u = "&updates=" + JSON.stringify(updates);
u = "&updates=" + encodeURIComponent(JSON.stringify(updates));
}
if(deletes.length > 0) {
var id = deletes[0].attributes[this.DB_UID];

View File

@ -1,6 +1,6 @@
{
"name": "esri-offline-maps",
"version": "3.2.0",
"version": "3.3.0",
"description": "Lightweight set of libraries for working offline with map tiles and editing with ArcGIS feature services",
"author": "Andy Gup <agup@esri.com> (http://blog.andygup.net)",
"license": "Apache 2.0",

View File

@ -1,5 +1,5 @@
<!DOCTYPE html>
<html manifest="appcache-features.appcache">
<!--<html manifest="appcache-features.appcache">-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

View File

@ -9,7 +9,7 @@
"appHomePage": "appcache-tiles.html",
"optimizedApiURL": "../samples/jsolib",
"arcGISBaseURL": "http://js.arcgis.com/3.14",
"version": "3.2.0",
"version": "3.3.0",
"private": true,
"description": "manifest generator project",
"repository": {