- Timestamp:
- 10/10/08 16:12:24 (2 months ago)
- Location:
- trunk/plugins/Linker
- Files:
-
- 2 modified
-
dialog.html (modified) (2 diffs)
-
pluginMethods.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/Linker/dialog.html
r987 r1078 4 4 <div id="[options]" > 5 5 <fieldset> 6 <legend><label><input type="radio" name="[type]" value="url" checked="checked" onclick="6 <legend><label><input type="radio" name="[type]" id="[type]" value="url" checked="checked" onclick=" 7 7 document.getElementById('[urltable]').style.display=this.checked?'':'none'; 8 8 document.getElementById('[mailtable]').style.display=this.checked?'none':''; … … 60 60 </table> 61 61 </fieldset> 62 <fieldset >62 <fieldset id="[mailtofieldset]"> 63 63 <legend><label><input type="radio" name="[type]" value="mailto" onclick=" 64 64 document.getElementById('[mailtable]').style.display=this.checked?'':'none'; -
trunk/plugins/Linker/pluginMethods.js
r1055 r1078 447 447 } 448 448 449 //if no anchors found completely hide Anchor-Link 450 if(anchor.length==0) { 449 // Configuration for disabling the mail link functionality. 450 if(this.linker.lConfig.disableMailto) 451 { 452 this.dialog.getElementById('mailtofieldset').style.display = "none"; 453 } 454 455 // Configuration for hiding the anchor functionality. Also, no need to show 456 // the UI if there are no anchors present in the document. 457 if(anchor.length==0 || this.linker.lConfig.disableAnchors) 458 { 451 459 this.dialog.getElementById('anchorfieldset').style.display = "none"; 452 } 460 461 // If we disable the other two fieldsets, we'll hide the (now) unnecessary 462 // radio button. 463 if (this.linker.lConfig.disableMailto) 464 { 465 this.dialog.getElementById('type').style.display = "none"; 466 } 467 } 468 453 469 454 470 // if we're not editing an existing link, hide the remove link button
