diff --git a/extras/chrome_extension/js/options.js b/extras/chrome_extension/js/options.js index c8ff5cd6c1..20084c46ff 100644 --- a/extras/chrome_extension/js/options.js +++ b/extras/chrome_extension/js/options.js @@ -20,7 +20,6 @@ function initialise(){ disable(true); document.getElementById('sound_alert_f').checked=true; } - } function change(value, id){ @@ -52,10 +51,7 @@ function change_o(value, id){ } function change_global(value,id){ - console.log("value => "+value); - console.log("id => "+id); bg=chrome.extension.getBackgroundPage(); - bg.location.reload(); if(id=="ip_address"){ localStorage["ip_address"]=value; } diff --git a/extras/chrome_extension/js/popup.js b/extras/chrome_extension/js/popup.js index 29bfa6b7b3..5bdbe966bd 100644 --- a/extras/chrome_extension/js/popup.js +++ b/extras/chrome_extension/js/popup.js @@ -62,22 +62,22 @@ function showError(text){ } function showEvents(){ + clearError(); - var wrapper = document.getElementById('event'); + console.log("showEvents!!"); + $('#events').empty(); var e_refr = document.getElementById('event_temp'); if(e_refr){ wrapper.removeChild(e_refr); } - var allEvents=bg.fetchEvents(); - var r = document.getElementById('e'); - var res=document.createDocumentFragment(); + var allEvents=bg.fetchEvents(); var eve=document.createElement('div'); eve.id="event_temp"; eve.setAttribute("class","b"); var i=0; if(allEvents.length>0){ - while(i

Error

- + -
-
-

Events

+
+

Events

+