Skip to content
This repository has been archived by the owner on Apr 9, 2021. It is now read-only.

Commit

Permalink
Fixed bug with ip inputs not displaying correctly in the first call o…
Browse files Browse the repository at this point in the history
…f onshow. if the preference was

previously set to custom. Introduced by changes to panel code
  • Loading branch information
dillbyrne committed Sep 14, 2014
1 parent 75b2d4d commit 84bb202
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 4 additions & 3 deletions data/js/set-options.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,10 @@ self.port.on("setCheckBox",function(checkboxid,value){
self.port.on("setElementValue",function(elementid,value){
document.getElementById(elementid).value = value;

//set custom ipcheckboxes to show if custom is selected
if(value == "custom")
document.getElementById('custom'+elementid).className="";
//set custom ipcheck inputs to show if custom is selected
if( document.getElementById(elementid.slice(0, -2)+'dd').value == "custom"){
document.getElementById('custom'+elementid.slice(0, -2)).className="";
}
});

self.port.on("setTextInputValue",function(elementid,value){
Expand Down
2 changes: 2 additions & 0 deletions lib/Panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ exports.init = function(){

});



//count of the total number of profiles, desktop and all (desktop+ others such as mobile,spiders,consoles. etc)
//used for excluding profiles from random selection
panel.port.once("randomcount",function(desktop,all){
Expand Down

0 comments on commit 84bb202

Please sign in to comment.