Commit 355b02fe by Uros Spasojevic

-implemented marker delete

parent 5bf1f955
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -83,6 +83,21 @@ Ext.define('Evoksi.view.evoksi.EvoksiController', {
text: 'Delete',
handler: function() {
console.log('deleting');
var i = markers.length;
var newMarkers = [];
while(i) {
i--;
if(markers[i].access == marker.access) {
markers[i].setMap(null);
} else {
newMarkers.push(markers[i]);
}
}
markers = newMarkers;
dbref.ref('/data/'+marker.access).remove();
win.close();
}
}
]
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment