summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjoseph.olstad2016-03-24 14:31:13 (GMT)
committerjoseph.olstad2016-03-24 14:31:13 (GMT)
commit5cb931479e754a175cfda0f2857961e7765f7a2a (patch)
tree51e81bbdf0d5f6962d400ac25e50f7313e67492b
parent216bed3ae9ccda38a5eb720d5e9ac3687b4e2cb9 (diff)
Issue #958730 by joseph.olstad: ajax call needs path prefix with i18n7.x-2.4
-rw-r--r--js/lightbox.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/js/lightbox.js b/js/lightbox.js
index 5c9aa64..061cfd6 100644
--- a/js/lightbox.js
+++ b/js/lightbox.js
@@ -1162,8 +1162,10 @@ Lightbox = {
filterXSS: function(str, allowed_tags) {
var output = "";
+ var prefix = Drupal.settings.pathPrefix;
+ if (!prefix) prefix = '';
$.ajax({
- url: Drupal.settings.basePath + '?q=system/lightbox2/filter-xss',
+ url: Drupal.settings.basePath + prefix + '?q=system/lightbox2/filter-xss',
data: {
'string' : str,
'allowed_tags' : allowed_tags