diff --git a/modules/discojuice/www/discojuice/discojuice.ui.js b/modules/discojuice/www/discojuice/discojuice.ui.js index 06d96f7e65f4e777cf7935b1f8e2bafa94c723cd..d8ca8cc8b65da7763bba8a7136a1030197dabf26 100644 --- a/modules/discojuice/www/discojuice/discojuice.ui.js +++ b/modules/discojuice/www/discojuice/discojuice.ui.js @@ -73,9 +73,9 @@ DiscoJuice.UI = { // Add matched search term if (search && search !== true) { - textLink += '<span class="substring">– ' + search + '</span>'; + textLink += '<span class="substring">— ' + search + '</span>'; } else if (item.descr) { - textLink += '<span class="substring">– ' + item.descr + '</span>'; + textLink += '<span class="substring">— ' + item.descr + '</span>'; } @@ -189,6 +189,12 @@ DiscoJuice.UI = { } } }, + + "error": function(message) { + console.log("error" + message); + this.popup.find("div#discojuice_error").show(); + this.popup.find("div.discojuice_errortext").append('<p style="border-bottom: 1px dotted #ddd; margin-bottom: 3px" class="discojuice_errortext">' + message + '</p>'); + }, "enable": function(control) { var imgpath = this.parent.Utils.options.get('discoPath', '') + 'images/'; @@ -222,6 +228,12 @@ DiscoJuice.UI = { '</div>' + '</div>' + + '<div id="discojuice_error" style="display: none" class="" >' + + '<img src="' + imgpath + 'error.png" style="float: left" />' + + '<div class="discojuice_errortext" style="clear: none; margin-top: 0px; margin-left: 30px; font-size: 11px;">' + + '</div>' + + '</div>' + + '<div id="locatemediv">' + '<div class="locatemebefore">' + '<p style="margin-top: 10px"><a id="locateme" href="">' +