initial test version of CustomGoat.js ... TBD on if we will keep it

This commit is contained in:
Jason White 2016-10-11 09:06:35 -04:00
parent a1a565597f
commit 829dcd2b29

View File

@ -0,0 +1,24 @@
define(['jquery',
'underscore',
'backbone',
'libs/jquery.form'
],
function($,
_,
Backbone,
JQueryForm) {
var customGoat = {
getFlights:function() {
var fromField = $('#travelFrom');
var toField = $('#travelTo');
var xml = '<?xml version="1.0"?>' +
'<searchForm>' +
' <from>' + fromField.value() + '</from>' +
'</searchForm>';
return xml;
},
}
return customGoat;
});