initial test version of CustomGoat.js ... TBD on if we will keep it
This commit is contained in:
parent
a1a565597f
commit
829dcd2b29
@ -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;
|
||||
});
|
Loading…
x
Reference in New Issue
Block a user