Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function newPostHandler(location){
- if (location) {
- $('#post_latitude').val(location.coords.latitude);
- $('#post_longitude').val(location.coords.longitude);
- };
- }
- Array.prototype.remove = function(element) {
- var index = this.indexOf(element);
- while (index != -1) {
- this.splice(index, 1);
- index = this.indexOf(element);
- }
- return this;
- }
Add Comment
Please, Sign In to add comment