Moderators Parkho Posted January 20, 2012 Moderators Report Share Posted January 20, 2012 Hi I'm looking for the calcDistance() function called in ops_scheduleform.tpl in admin/templates. Any body knows where it is? thanks Quote Link to comment Share on other sites More sharing options...
Moderators Kyle Posted January 20, 2012 Moderators Report Share Posted January 20, 2012 admin/lib/phpvmsadmin.js At line 215 to 222 function calcDistance() { $("#distance").val("Calculating..."); $.get(baseurl + "/admin/action.php/operations/calculatedistance", { depicao: $("#depicao").val(), arricao: $("#arricao").val() }, function(data) { $("#distance").val(data); }); } Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted January 21, 2012 Author Moderators Report Share Posted January 21, 2012 admin/lib/phpvmsadmin.js At line 215 to 222 function calcDistance() { $("#distance").val("Calculating..."); $.get(baseurl + "/admin/action.php/operations/calculatedistance", { depicao: $("#depicao").val(), arricao: $("#arricao").val() }, function(data) { $("#distance").val(data); }); } Thanks a lot. Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted January 21, 2012 Author Moderators Report Share Posted January 21, 2012 admin/lib/phpvmsadmin.js At line 215 to 222 function calcDistance() { $("#distance").val("Calculating..."); $.get(baseurl + "/admin/action.php/operations/calculatedistance", { depicao: $("#depicao").val(), arricao: $("#arricao").val() }, function(data) { $("#distance").val(data); }); } Okay! How do I call that function in a .tpl form? or is it possible? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.