diff --git a/modules/discojuice/www/discojuice/discojuice.control.js b/modules/discojuice/www/discojuice/discojuice.control.js index dd3873846307bc70c68ee05f248865e5fd6cf8a7..012819a133116c9f0ef2ee13d3f779eec4c49d73 100644 --- a/modules/discojuice/www/discojuice/discojuice.control.js +++ b/modules/discojuice/www/discojuice/discojuice.control.js @@ -522,8 +522,8 @@ DiscoJuice.Control = { */ var quickSel = false; if (!quickSelected) { - console.log('Term: ' + term); - console.log('Search: ' + search); + // console.log('Term: ' + term); + // console.log('Search: ' + search); if (term && search !== false) { quickSel = true; quickSelected = true; @@ -798,6 +798,10 @@ DiscoJuice.Control = { that.hitEnter(); return; } + if(charCode == 27) { + that.ui.hide(); + return; + } performSearch.ping(event); }); diff --git a/modules/discojuice/www/discojuice/discojuice.ui.js b/modules/discojuice/www/discojuice/discojuice.ui.js index 20beb28f235a8ab958a700f90daab8dc4ea72ad9..86c5062787832db38d68c691e1e2267881bb00c9 100644 --- a/modules/discojuice/www/discojuice/discojuice.ui.js +++ b/modules/discojuice/www/discojuice/discojuice.ui.js @@ -142,13 +142,8 @@ DiscoJuice.UI = { textLink += '<hr style="clear: both; height: 0px; visibility:hidden" />'; } - - - - - // Wrap in A element textLink = '<a href="" class="' + classes + '" rel="' + escape(relID) + '" title="' + escape(item.title) + '">' + textLink + '</a>'; @@ -162,7 +157,8 @@ DiscoJuice.UI = { $("div.discojuice_listContent").hide(); $("div#locatemediv").hide(); $("div#search").hide(); - $("div.filters p.discojuice_filter_country").hide(); + + $("div.filters").hide(); $("div#discojuice_page div.discojuice_content").html(content); @@ -177,6 +173,12 @@ DiscoJuice.UI = { $("div.discojuice_listContent").show(); $("div#discojuice_page").hide(); $("div#discojuice_page_return").hide(); + + if (this.parent.Utils.options.get('location', false) && navigator.geolocation) { + $("div#locatemediv").show(); + } + $("div#search").show(); + $("div.filters").show(); }, "refreshData": function(showmore, show, listcount) { @@ -292,8 +294,9 @@ DiscoJuice.UI = { '<button id="discojuiceextesion_listener" />' + '</div>' + - '<div class="filters bottom">' + + '<div class="bottom">' + // '<p style="margin 0px; color: #ccc; font-size: 75%; float: left">Settings</p>' + + '<div class="filters" style="padding: 0px; margin: 0px"></div>' + '<p id="dj_help" style="margin 0px; text-align: right; color: #ccc; font-size: 75%">' + 'DiscoJuice © UNINETT ' + '<img class="" style="position: relative; bottom: -4px; right: -5px" alt="Information" src="' + imgpath + 'info.png" />' @@ -366,13 +369,12 @@ DiscoJuice.UI = { $("div.locatemeafter").html('<div class="loadingData" ><img src="' + imgpath + 'spinning.gif" /> Getting your location...</div>'); that.control.locateMe(); }); - } else { - $("div#locatemediv").hide(); - } - - + } + }, + + "setLocationText": function(html) { return $("div.locatemeafter").html(html); },