debug
This commit is contained in:
parent
7b6ea55d8d
commit
d6312dc965
@ -325,7 +325,6 @@
|
||||
|
||||
//grab all form data
|
||||
var formData = new FormData($(this)[0]);
|
||||
console.log(formData);
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "ajax/ajax_location_push.php",
|
||||
@ -345,7 +344,6 @@
|
||||
$("#topic").val(2);
|
||||
$("#photo").val("");
|
||||
popuptext=data;
|
||||
console.log(data);
|
||||
marker[marker_max] = L.marker([lat,lng], { icon: newMarker }).addTo(mymap);
|
||||
marker[marker_max].bindPopup(popuptext);
|
||||
marker_max++;
|
||||
@ -472,7 +470,9 @@
|
||||
var objectUrl = _URL.createObjectURL(file);
|
||||
img.onload = function () {
|
||||
image_ok = (this.width<2000 && this.height<2000 && this.width>100 && this.height>100);
|
||||
|
||||
console.log("Breite:" + this.width + " Höhe: " + this.height);
|
||||
console.log(this);
|
||||
if (!image_ok) {
|
||||
alert("Bilder dürfen maximal 2000 x 2000 Pixel groß sein.\n"
|
||||
+"Breite:" + this.width + " Höhe: " + this.height)
|
||||
|
Loading…
Reference in New Issue
Block a user