summaryrefslogtreecommitdiff
path: root/modules/system/system.js
diff options
context:
space:
mode:
authorwebchick <webchick@24967.no-reply.drupal.org>2012-04-30 22:04:36 -0700
committerwebchick <webchick@24967.no-reply.drupal.org>2012-04-30 22:04:36 -0700
commit1ef0cd4e9cddb9541ecd2f2e2bb47b51c209b18a (patch)
tree58a215b9b4152188280304b66d90c515f48896da /modules/system/system.js
parent471664d00e278c340208821aa5f789b0bfbdaf8f (diff)
downloadbrdo-1ef0cd4e9cddb9541ecd2f2e2bb47b51c209b18a.tar.gz
brdo-1ef0cd4e9cddb9541ecd2f2e2bb47b51c209b18a.tar.bz2
Issue #1459164 by Kevin Morse, droplet: Use test() to match string for BOOL comparison .
Diffstat (limited to 'modules/system/system.js')
-rw-r--r--modules/system/system.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/system/system.js b/modules/system/system.js
index f4bdc6d07..910fb5d3d 100644
--- a/modules/system/system.js
+++ b/modules/system/system.js
@@ -105,7 +105,7 @@ Drupal.behaviors.dateTime = {
// Attach keyup handler to custom format inputs.
$('input' + source, context).once('date-time').keyup(function () {
var input = $(this);
- var url = fieldSettings.lookup + (fieldSettings.lookup.match(/\?q=/) ? '&format=' : '?format=') + encodeURIComponent(input.val());
+ var url = fieldSettings.lookup + (/\?q=/.test(fieldSettings.lookup) ? '&format=' : '?format=') + encodeURIComponent(input.val());
$.getJSON(url, function (data) {
$(suffix).empty().append(' ' + fieldSettings.text + ': <em>' + data + '</em>');
});