[gnome-maps/wip/osm-edit: 27/47] osmEdit: hook up upload button to call the edit manager to start the changeset
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/osm-edit: 27/47] osmEdit: hook up upload button to call the edit manager to start the changeset
- Date: Thu, 30 Apr 2015 12:59:38 +0000 (UTC)
commit a934529ee5bc141beee9be4fdb6b6b5c7586ad23
Author: Marcus Lundblad <ml update uu se>
Date: Thu Feb 12 23:01:33 2015 +0100
osmEdit: hook up upload button to call the edit manager to start the changeset
src/osmEditDialog.js | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/src/osmEditDialog.js b/src/osmEditDialog.js
index d7fdc68..0ff37ae 100644
--- a/src/osmEditDialog.js
+++ b/src/osmEditDialog.js
@@ -38,7 +38,9 @@ const OSMEditDialog = new Lang.Class({
InternalChildren: [ 'cancelButton',
'saveButton',
'stack',
- 'nameEntry'],
+ 'nameEntry',
+ 'commentEntry',
+ 'sourceEntry'],
_init: function(params) {
this._place = params.place;
@@ -74,6 +76,10 @@ const OSMEditDialog = new Lang.Class({
this._isEditing = false;
} else {
// upload data to OSM
+ Application.osmEditManager.uploadObject(this._place,
+ this._commentEntry.text,
+ this._sourceEntry.text,
+ this._uploadOSMObjectCB);
}
},
@@ -92,6 +98,10 @@ const OSMEditDialog = new Lang.Class({
this._stack.set_visible_child_name('editor');
},
+ _uploadOSMObjectCB: function(data) {
+
+ },
+
_showError: function(status) {
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]