diff options
author | Gabor Hojtsy <gabor@hojtsy.hu> | 2016-02-24 20:20:15 +0100 |
---|---|---|
committer | Gabor Hojtsy <gabor@hojtsy.hu> | 2016-02-24 20:20:15 +0100 |
commit | 18f1c229fcb87b1a1f94fcb1f0785ba3d40fc402 (patch) | |
tree | 82d672e7e57f2983301ed5539a53c0a2a4fba534 /modules/system/system.js | |
parent | 756b9f40ceec48c0c3cd0b2d2c50aca5fc911e66 (diff) | |
download | drupal-18f1c229fcb87b1a1f94fcb1f0785ba3d40fc402.tar.gz drupal-18f1c229fcb87b1a1f94fcb1f0785ba3d40fc402.zip |
Drupal 6.38 (SA-CORE-2016-001) by agerard, Alan Evans, benjy, catch, chx, dalin, Damien Tournoud, DamienMcKenna, Dave Cohen, Dave Reid, David Jardin, David_Rothstein, dmitrig01, dsnopek, effulgentsia, fgm, greggles, Gábor Hojtsy, Harry Taheem, Heine, John Morahan, Juho Nurminen 2NS, klausi, larowlan, nagba, Pere Orga, plach, pwolanin, quicksketch, rickmanelius, scor, sun, Tarpinder Grewal, YesCT6.386.x
Diffstat (limited to 'modules/system/system.js')
-rw-r--r-- | modules/system/system.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/system/system.js b/modules/system/system.js index 48fd016a5f9..24f998ca7d8 100644 --- a/modules/system/system.js +++ b/modules/system/system.js @@ -101,7 +101,7 @@ Drupal.behaviors.dateTime = function(context) { // Attach keyup handler to custom format inputs. $('input.custom-format:not(.date-time-processed)', context).addClass('date-time-processed').keyup(function() { var input = $(this); - var url = Drupal.settings.dateTime.lookup +(Drupal.settings.dateTime.lookup.match(/\?q=/) ? "&format=" : "?format=") + encodeURIComponent(input.val()); + var url = Drupal.settings.dateTime.lookup +(Drupal.settings.dateTime.lookup.match(/\?/) ? "&format=" : "?format=") + encodeURIComponent(input.val()); $.getJSON(url, function(data) { $("div.description span", input.parent()).html(data); }); |