if (OSM.oauth_token) {
var headerGenerator = window.ohauth.headerGenerator({
consumer_key: OSM.oauth_consumer_key,
if (OSM.oauth_token) {
var headerGenerator = window.ohauth.headerGenerator({
consumer_key: OSM.oauth_consumer_key,
$.ajaxPrefilter(function(options, jqxhr) {
if (options.oauth) {
options.headers = options.headers || {};
$.ajaxPrefilter(function(options, jqxhr) {
if (options.oauth) {
options.headers = options.headers || {};