pulling up fix for reopened ticket:2393 to 2.9 branch
git-svn-id: http://svn.openlayers.org/branches/openlayers/2.9@10275 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -358,10 +358,11 @@ OpenLayers.Protocol.HTTP = OpenLayers.Class(OpenLayers.Protocol, {
|
||||
* the feature received from the server.
|
||||
*/
|
||||
update: function(feature, options) {
|
||||
options = OpenLayers.Util.applyDefaults(options, this.options);
|
||||
options = options || {};
|
||||
var url = options.url ||
|
||||
feature.url ||
|
||||
this.options.url + "/" + feature.fid;
|
||||
options = OpenLayers.Util.applyDefaults(options, this.options);
|
||||
|
||||
var resp = new OpenLayers.Protocol.Response({
|
||||
reqFeatures: feature,
|
||||
@@ -408,10 +409,11 @@ OpenLayers.Protocol.HTTP = OpenLayers.Class(OpenLayers.Protocol, {
|
||||
* completes.
|
||||
*/
|
||||
"delete": function(feature, options) {
|
||||
options = OpenLayers.Util.applyDefaults(options, this.options);
|
||||
options = options || {};
|
||||
var url = options.url ||
|
||||
feature.url ||
|
||||
this.options.url + "/" + feature.fid;
|
||||
options = OpenLayers.Util.applyDefaults(options, this.options);
|
||||
|
||||
var resp = new OpenLayers.Protocol.Response({
|
||||
reqFeatures: feature,
|
||||
|
||||
Reference in New Issue
Block a user