From 6a0a28756c9223edd39919b00a95de83f7ec2770 Mon Sep 17 00:00:00 2001 From: Jakub Skoczen Date: Thu, 3 Mar 2011 14:10:09 +0100 Subject: [PATCH] User link/recipe logic --- mkdruding2.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/mkdruding2.js b/mkdruding2.js index d74b6bb..8321feb 100644 --- a/mkdruding2.js +++ b/mkdruding2.js @@ -1,10 +1,13 @@ Drupal.theme.mkdruResult = function(hit, num, detailLink) { + var link = choose_url(hit); + if (!link) link = choose_url(hit['location'][0]); var html = ""; html += '
  • ' - + '

    ' - + '' - + hit["md-title"] + '

    '; + + '

    '; + if (link) html += ''; + html += hit["md-title"]; + if (link) html += ''; + html += '

    '; html += '
    ' + '

    ' + '
    ' -- 1.7.10.4