Skip to content
Snippets Groups Projects
Commit a8d255bf authored by Andreas Gohr's avatar Andreas Gohr
Browse files

JavaScript fixes for media manger on IE

Fixes the display of the checkbox options

darcs-hash:20060616113600-7ad00-000ca791e8c3d9045bda06af9e149f2e2321a8bd.gz
parent 5cafff96
No related branches found
No related tags found
No related merge requests found
......@@ -74,9 +74,10 @@ media = {
kobox.id = 'media__keepopen';
if(DokuCookie.getValue('keepopen')){
kobox.checked = true;
kobox.defaultChecked = true; //IE wants this
media.keepopen = true;
}
addEvent(kobox,'change',function(event){ return media.togglekeepopen(event,this); });
addEvent(kobox,'click',function(event){ return media.togglekeepopen(event,this); });
var kolbl = document.createElement('label');
kolbl.htmlFor = 'media__keepopen';
......@@ -95,9 +96,10 @@ media = {
hdbox.id = 'media__hide';
if(DokuCookie.getValue('hide')){
hdbox.checked = true;
hdbox.defaultChecked = true; //IE wants this
media.hide = true;
}
addEvent(hdbox,'change',function(event){ return media.togglehide(event,this); });
addEvent(hdbox,'click',function(event){ return media.togglehide(event,this); });
var hdlbl = document.createElement('label');
hdlbl.htmlFor = 'media__hide';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment