dont create feature if item not selected
This commit is contained in:
parent
f79b8067c2
commit
0b78f091c4
|
@ -1,3 +1,4 @@
|
||||||
|
|
||||||
var creds = {
|
var creds = {
|
||||||
'cloudmade': '534d7b971d044dcaafa6678414f26924'
|
'cloudmade': '534d7b971d044dcaafa6678414f26924'
|
||||||
}
|
}
|
||||||
|
@ -58,7 +59,7 @@ function initNewFeature(feat, type) {
|
||||||
// GLOBFEAT = feat;
|
// GLOBFEAT = feat;
|
||||||
if ($('.selectedItem').length == 0) {
|
if ($('.selectedItem').length == 0) {
|
||||||
alert("please select an item from the list first");
|
alert("please select an item from the list first");
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
var $selectedItem = $('.selectedItem');
|
var $selectedItem = $('.selectedItem');
|
||||||
$selectedItem.data("layer", feat);
|
$selectedItem.data("layer", feat);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user