b.submitSpot=function(){if(j.defer().resolve(),
b.spotsLoading=!1,
!(void 0===b.newSpot||void 0===b.newSpot.de_call||void 0===b.newSpot.dx_call||void 0===b.newSpot.frequency||b.newSpot.de_call.length<1||b.newSpot.dx_call.length<1||b.newSpot.frequency.length<1))
{if(b.newSpot.info&&"undefined"!==b.newSpot.info||(b.newSpot.info=""),
parseFloat(b.newSpot.frequency.replace(",","."))<100)
{var a=parseFloat(b.newSpot.frequency.replace(",","").replace(".",""))+"";b.newSpot.frequency=a}
c({method:"POST",data:b.newSpot,url:Endpoints.spots}).success(function(a)
{"ok"===a.status?(b.newSpot.dx_call="",b.newSpot.frequency="",b.newSpot.info="",
window.alert("New spot submitted")):window.alert(a.status)}).error(function(){window.alert("Error")})}}