// vim: et:ts=4:sw=4:sts=4:ft=js /*@ Ox.PlaceInput PlaceInput Object () -> PlaceInput Object (options) -> PlaceInput Object (options, self) -> PlaceInput Object options Options object id element id value default value of place input self shared private variable @*/ Ox.PlaceInput = function(options, self) { var that; self = $.extend(self || {}, { options: $.extend({ id: '', value: 'United States' }, options) }); that = Ox.FormElementGroup({ id: self.options.id, elements: [ Ox.Input({ id: 'input', value: self.options.value }), Ox.PlacePicker({ id: 'picker', overlap: 'left', value: self.options.value }) ], float: 'right' }, self) .bindEvent('change', change); function change() { } return that; };