Changeset 1329
- Timestamp:
- 08/22/06 09:09:53 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/openlayers/2.0/lib/OpenLayers/Control/LayerSwitcher.js
r1314 r1329 119 119 inputElem.type = (baseLayer) ? "radio" : "checkbox"; 120 120 inputElem.value = layer.name; 121 inputElem.checked = checked; 121 122 inputElem.checked = checked; 122 123 inputElem.layer = layer; … … 162 163 163 164 onInputClick: function(e) { 164 var clickedRadioButton = ((this.type == "radio") && (this.checked)); 165 if (!clickedRadioButton) { 165 if (this.type == "radio") { 166 this.checked = true; 167 } else { 166 168 this.checked = !this.checked; 167 169 } … … 275 277 276 278 Event.observe(this.div, "mouseup", 277 this. ignoreEvent);279 this.mouseUp.bindAsEventListener(this)); 278 280 Event.observe(this.div, "click", 279 281 this.ignoreEvent); 280 282 Event.observe(this.div, "mousedown", 281 this. ignoreEvent);283 this.mouseDown.bindAsEventListener(this)); 282 284 Event.observe(this.div, "dblclick", this.ignoreEvent); 283 285
