From 46bfed5d2f2f168fbc8b8522567b39e1cdf1fd32 Mon Sep 17 00:00:00 2001 From: Jon Atkins Date: Tue, 19 Mar 2013 22:51:51 +0000 Subject: [PATCH] use @@..@@ replacements for hard-coded URLs in plugins --- plugins/draw-tools.user.js | 5 ++--- plugins/max-links.user.js | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/plugins/draw-tools.user.js b/plugins/draw-tools.user.js index 1b64d539..0a40a18a 100644 --- a/plugins/draw-tools.user.js +++ b/plugins/draw-tools.user.js @@ -31,15 +31,14 @@ var DRAW_TOOLS_SHAPE_OPTIONS = { window.plugin.drawTools = function() {}; window.plugin.drawTools.loadExternals = function() { - var base = 'http://iitc.jonatkins.com/dist'; - //~ var base = 'http://0.0.0.0:8000/dist'; + var base = '@@RESOURCEURLBASE@@'; load(base+'/leaflet.draw.0.1.6.js').thenRun(window.plugin.drawTools.boot); // FIXME: this is currently manually included from // external/leaflet.draw.0.1.6.css. It should either be loaded remotely // automatically or the buildscript should include it here, similar to // how it works for the main script. - $('head').append(''); + $('head').append(''); } diff --git a/plugins/max-links.user.js b/plugins/max-links.user.js index 1e492c35..95bc0301 100644 --- a/plugins/max-links.user.js +++ b/plugins/max-links.user.js @@ -32,7 +32,7 @@ window.plugin.maxLinks.STROKE_STYLE = { clickable: false, smoothFactor: 10 }; -window.plugin.maxLinks._delaunayScriptLocation = 'http://iitc.jonatkins.com/dist/delaunay.js'; +window.plugin.maxLinks._delaunayScriptLocation = '@@RESOURCEURLBASE@@/delaunay.js'; window.plugin.maxLinks.layer = null;