Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add venuesearch in api class

  • Loading branch information...
commit eb06f50c1e3def64ce64b17e7a5b546e82e1e8c8 1 parent 7665aee
@swznd swznd authored
Showing with 12 additions and 1 deletion.
  1. +12 −1 js/api.js
View
13 js/api.js
@@ -64,12 +64,23 @@ this.api = (function() {
})
}
+ function venuesearch(query,callback) {
+ $.get(APIURL+'venue/search?q='+query, function(resp) {
+ if(resp.status == true) {
+ if(callback && typeof callback === "function") {
+ callback(resp.results);
+ }
+ }
+ })
+ }
+
return {
items: items,
detail: detail,
add: add,
exchangeToken: exchangeToken,
- updateProfile: updateProfile
+ updateProfile: updateProfile,
+ venuesearch: venuesearch
}
}());
Please sign in to comment.
Something went wrong with that request. Please try again.